#silverstripe IRC Log

IRC log for 12 July 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:00:32] * Tron quit (Ping timeout: 250 seconds)
4: [00:00:38] <DanaeNZ> muskie9: yeeeep
5: [00:05:58] * DarjusIT quit (Read error: Connection reset by peer)
6: [00:15:03] <ss-helper> Silverstripe: Unable to delete pages from back end - http://stackoverflow.com/questions/38318028/silverstripe-unable-to-delete-pages-from-back-end
7: [00:16:58] * DanaeNZ quit (Remote host closed the connection)
8: [00:17:34] * DanaeNZ has joined #silverstripe
9: [00:20:43] <muskie9> what's the trick to allow a dataobject to be usable by all subsites
10: [00:21:32] <Nightjar> ThatObject::get() ?
11: [00:22:09] <muskie9> Nightjar the query is augmented by default to get with a subsite ID filter added... I thought there was a config option or something in the past to disable that... but I could be wrong
12: [00:22:23] * DanaeNZ quit (Ping timeout: 276 seconds)
13: [00:23:31] * cloph_away quit (Ping timeout: 240 seconds)
14: [00:26:43] * DanaeNZ has joined #silverstripe
15: [00:27:39] <DanaeNZ> i'm so mad, went out for a walk, turned on the incense and lucky egg, then the servers went down
16: [00:27:53] <ss23> lol
17: [00:28:10] <ss23> rekt
18: [00:28:13] <DanaeNZ> so rekt
19: [00:28:20] <ss23> that's what you get for traying to pokeplay during work hours
20: [00:28:22] <DanaeNZ> apparently you can fill out a form and get reimbursed
21: [00:28:33] <DanaeNZ> lunch break, it's legit
22: [00:28:35] * cloph_away has joined #silverstripe
23: [00:32:53] <muskie9> apparently it was just can() permissions...
24: [00:47:33] <Nightjar> muskie9, Subsite::disable_automagic_query_fiddler()
25: [00:47:58] <Nightjar> but htought it was only on sitetree for some reason
26: [00:48:00] <Nightjar> my bad
27: [00:48:37] <Nightjar> (obviously look up real method name, but it's there, and static)
28: [00:48:52] <muskie9> seems it is just on SiteTree rather than DO... I had a missing canView() on the DO http://www.bluehogreport.com/wp-content/uploads/facepalm.jpg
29: [00:49:04] <Nightjar> ic
30: [00:50:01] <muskie9> did find an interesting bug (or possible bug)... when copying a child page from one site to another in subsites... it doesn't handle the new parent well (or at all)... so the page is owned by the second site, but the parent page is set to the ID of the page on site one
31: [00:50:48] <Nightjar> file bug
32: [00:50:54] <Nightjar> subsites be like that :<
33: [00:51:03] <Nightjar> probably most hated module around
34: [00:51:08] <Nightjar> excepting spronk, he loves it.
35: [00:51:12] <muskie9> gonna test it on a fresh install and see if I can PR it
36: [00:51:25] <Nightjar> just log an issue for now.
37: [00:51:33] <Nightjar> then at least it's there if you don't get around to it
38: [00:51:41] <muskie9> we've used it on 2 recent projects and have another few that will in the near future
39: [00:51:45] <muskie9> true
40: [00:51:48] <Nightjar> can reference/pr against the issue if need be.
41: [00:55:25] * Stomach quit (Quit: zzz)
42: [00:58:45] * DanaeNZ quit (Remote host closed the connection)
43: [00:59:01] <muskie9> when I tested on a clean install it looks like it does copy and should remove the parent ID... must be more buggy code in our site... ugh
44: [00:59:23] * DanaeNZ has joined #silverstripe
45: [01:00:04] <ss-helper> SilverStripe update notifications for CMS and Framework, and modules installed - http://stackoverflow.com/questions/38318343/silverstripe-update-notifications-for-cms-and-framework-and-modules-installed
46: [01:01:00] <muskie9> well, relax time
47: [01:01:04] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
48: [01:03:42] * DanaeNZ quit (Ping timeout: 258 seconds)
49: [01:04:08] * DanaeNZ has joined #silverstripe
50: [01:11:20] * Stomach has joined #silverstripe
51: [01:14:49] * micmania1 quit (Quit: micmania1)
52: [01:39:56] <pippy> i got my old intern in to do some contract work, and he's putting in images without alt tags and using css to resize the images
53: [01:40:02] <pippy> it's like i didn't teach him anything
54: [01:40:29] * spronk has joined #silverstripe
55: [01:40:40] <pippy> and worse of all, he's using divs and background images to reference raw images from silverstripe
56: [01:40:46] <pippy> *worst
57: [01:41:13] <pippy> everyone knows the first thing CMS authors do is insert 2000x2000 jpgs in the images fields
58: [01:41:24] <spronk> to be fair
59: [01:41:27] <spronk> you should use css to resize images
60: [01:41:39] <spronk> for hdpi
61: [01:56:14] * guci0 quit (Ping timeout: 250 seconds)
62: [01:57:37] * Tron has joined #silverstripe
63: [02:09:38] * Nightjar quit (Read error: Connection reset by peer)
64: [02:26:31] * Stomach quit (Ping timeout: 240 seconds)
65: [02:29:44] * Stomach has joined #silverstripe
66: [02:43:27] <pippy> spronk: that's what srcset is for
67: [02:43:43] <pippy> though there are plenty of situations where using css to override the image is acceptable
68: [02:43:58] <pippy> though i don't like doing it often because it will often cause the image to download twice
69: [02:44:12] <spronk> mm
70: [02:44:24] <pippy> i tend to use css for hdpi images for small things like logos or icons
71: [02:44:30] <spronk> mm
72: [02:46:01] <pippy> is that mm agreeing or being skeptical?
73: [02:46:15] <spronk> agreeing
74: [02:46:29] <pippy> oh sweet
75: [02:46:36] <spronk> srcset is kinda annoying to use sometimes though
76: [02:46:38] <spronk> mainly the weird as fuck syntax
77: [02:46:50] <pippy> i was worried i was fucking up majorly with my front end stuff
78: [02:47:06] <pippy> spronk: yeah, the syntax is a pain in the ass
79: [02:47:08] <spronk> i use css for logos and icons
80: [02:47:20] <spronk> they're small enough that it's not really an issue to download the larger version
81: [02:47:24] <spronk> but yeah
82: [02:47:27] <spronk> shit like big photo jpegs...
83: [02:47:28] <spronk> hmmmm
84: [02:47:36] <spronk> sometimes i just don't care
85: [02:47:41] <spronk> and compress the image a bit more than usual
86: [02:47:45] <spronk> and cssresize
87: [02:47:51] <pippy> agreed
88: [02:48:05] <pippy> the srcset pain is why i made this
89: [02:48:06] <pippy> http://addons.silverstripe.org/add-ons/otago/silverstripe-retinaimages
90: [02:48:15] <spronk> heh
91: [02:48:28] <spronk> hadn't seen this one
92: [02:48:36] <spronk> ive used heyday's one
93: [02:48:47] <spronk> but it uses picture and javascript
94: [02:49:55] <pippy> I thought about using heyday's one, but i'm old school and don't like using js when i don't have too
95: [02:50:02] <spronk> mm
96: [02:50:09] <spronk> i've never really enjoyed using it lol
97: [02:50:15] <pippy> their one actually predates the srcset becoming standard
98: [02:50:32] <spronk> mm
99: [02:50:57] <pippy> the w3c reused the srcset tag when high res monitors came out, before that it was used to specify a lower res image
100: [02:51:11] <pippy> they were gonna get rid of the tag with html5
101: [02:51:19] <spronk> yeah
102: [02:51:25] <spronk> which is the reason for the dodgy as fuck syntax :p
103: [02:51:55] <pippy> haha yeah
104: [02:52:35] <pippy> you can do funky things with the syntax, like specify widths and stuff
105: [02:52:48] <pippy> but i only wanted to target high res screens and not take a toll on desktops
106: [02:53:26] <spronk> yeah
107: [02:53:36] <spronk> really i just wanted like
108: [02:53:37] <spronk> media queries
109: [02:54:11] <spronk> it'd be nice if we had android-style dpi handles
110: [02:54:15] <spronk> but ... oh well
111: [02:56:27] <pippy> according to can i use, it will be available with the next release of chrome for android http://caniuse.com/#feat=srcset
112: [02:57:56] <pippy> or do you mean like this?
113: [02:57:57] <pippy> https://developer.android.com/guide/practices/screens_support.html#qualifiers
114: [02:58:08] <spronk> ya
115: [02:58:09] <spronk> latter
116: [02:58:52] <pippy> yeah that looks pretty handy
117: [02:59:15] <pippy> Resources for extra-extra-extra-high-density
118: [02:59:26] <pippy> wow, is there a screen that has 600dpi?
119: [02:59:36] <spronk> mm
120: [03:02:02] <pippy> LG’s new screen is much closer to the maximum resolution of a perfect human eye (~477 PPI).
121: [03:02:19] <pippy> if you can't see better than 477ppi, why go beyond that
122: [03:02:27] <pippy> http://www.extremetech.com/computing/130051-lgs-new-440-ppi-display-is-way-too-much-of-a-good-thing
123: [03:08:08] <spronk> yeah
124: [03:08:08] <spronk> pretty crazy
125: [03:14:46] * Stomach quit (Quit: zzz)
126: [03:17:18] * Nightjar has joined #silverstripe
127: [03:19:02] * micmania1 has joined #silverstripe
128: [03:30:05] <Zauberfisch> hey guys
129: [03:30:25] <Zauberfisch> I am having an issue with GridFieldDetailForm and validation exceptions
130: [03:30:37] <Zauberfisch> can anyone confirm or deny that this is broken in 3.3.x?
131: [03:31:32] <Zauberfisch> (to be more precise about what I suspect is broken: throwing a ValidationException during the submission handling previously displayed the message of the Exception as Form message but now results in an error)
132: [03:41:28] * Stomach has joined #silverstripe
133: [03:44:51] <Zauberfisch> spekulatius: ohai
134: [03:44:55] <Zauberfisch> still online?
135: [03:45:20] <spekulatius> Hallo Zauberfisch :)
136: [03:45:31] <Zauberfisch> saw your pull request
137: [03:45:50] <spekulatius> nothing too important, just like it tidy...
138: [03:45:59] <Zauberfisch> good change. didn't know this existed
139: [03:46:12] <Zauberfisch> I guess I should update that repo anyway
140: [03:47:08] <spekulatius> all good
141: [03:47:28] <spekulatius> Just saw this and thought it makes sense ...
142: [03:59:54] <Zauberfisch> haha
143: [04:00:08] <Zauberfisch> I might aswell be the one to fault for the bug here
144: [04:01:00] <Zauberfisch> https://github.com/silverstripe/silverstripe-framework/commit/7f1b6cfe26406d780261a6fcb702746da5361c40#diff-b886eb08b8720b4b09ea1c7229bd00ffR228
145: [04:01:52] <Zauberfisch> but that's 2012
146: [04:01:59] <Zauberfisch> nah, can't be. can it?
147: [04:02:11] * Stomach quit (Quit: zzz)
148: [04:05:48] <Zauberfisch> ok, so, here is the trace:
149: [04:08:31] <Zauberfisch> GridFieldDetailForm->doSave() calls FooDataObject->write() and catches a ValidationException, sets the form session message and triggers a redirect back
150: [04:08:52] <Zauberfisch> this redirect back howerver is done in the forum of "return $controller->redirectBack()"
151: [04:09:05] <Zauberfisch> which now returns a SS_HTTPResponse object
152: [04:09:23] * Stomach has joined #silverstripe
153: [04:10:21] <Zauberfisch> the PjaxResponseNegotiator takes that response and trys to do: $response->setBody($returnedResponse)
154: [04:10:41] <Zauberfisch> which basically is SS_HTTPResponse->setBody(new SS_HTTPResponse);
155: [04:10:55] <Zauberfisch> resulting in:
156: [04:11:03] <Zauberfisch> [Recoverable Error] Object of class SS_HTTPResponse could not be converted to string
157: [04:11:40] <Zauberfisch> need some advise on fixing this
158: [04:12:12] <Nightjar> Zauberfisch! \o/
159: [04:12:16] <Zauberfisch> would it be approiate to add a check in PjaxResponseNegotiator to see if the response already is an SS_HTTPResponse?
160: [04:12:44] * Tron quit (Ping timeout: 250 seconds)
161: [04:13:00] <Zauberfisch> or would we rather fix this in SS_HTTPResponse->setBody() so that $response->setBody(new SS_HTTPResponse); becomes valid?
162: [04:13:14] * Tron has joined #silverstripe
163: [04:13:23] <Zauberfisch> Nightjar: o/
164: [04:13:45] <Nightjar> I'm not sure Zauberfisch - Ingo is on Holiday :p
165: [04:13:51] <Zauberfisch> damn
166: [04:14:02] <Nightjar> closer to you though, from what I heard.
167: [04:14:17] <Nightjar> I guess just open a ticket and let the rest of core confer over it
168: [04:14:27] <Zauberfisch> I guess
169: [04:14:43] <Nightjar> I'd expect the latter to be valid though, I think that's more in line with how a standard response works.
170: [04:14:46] <Nightjar> from memory*
171: [04:14:50] <Zauberfisch> I just had the hope of fixing this within the day
172: [04:15:17] <Nightjar> In that case yeah, I'm pretty sure a standard response will accept a response as a response body.
173: [04:15:38] <Nightjar> not 100%, probably just check that and copy for pjax
174: [04:15:50] <Nightjar> Then at least there's consistency.
175: [04:15:58] <Nightjar> :)
176: [04:16:18] <Zauberfisch> well, not sure about that
177: [04:16:29] <Zauberfisch> PjaxResponseNegotiator per se is not a response
178: [04:16:39] <Zauberfisch> it's rather a factory for responses I guess
179: [04:16:53] <Zauberfisch> utility class
180: [04:17:10] <Nightjar> Firesphere, you're on actual dev work, you have anything to weigh in here?
181: [04:17:23] <Nightjar> You'd be more familiar with the system in that respect, right?
182: [04:17:27] <Zauberfisch> and is, despite the name, not only used for pjax but normal http requests aswell at some points
183: [04:17:49] <Nightjar> yeah, I'm not a fan of it to be honest Zauberfisch - I try to avoid it :(
184: [04:17:59] <Nightjar> I'm recalling 2+ year old info here.
185: [04:18:03] <Nightjar> from my head.
186: [04:18:19] <Nightjar> Not the most trustworthy of sources :s
187: [04:18:38] <Zauberfisch> which is also why this has not been discovered until now I suspect. because when the request is ajax it works
188: [04:19:14] <Zauberfisch> so the pjax part works. the http stuff might not be aswell tested nor used
189: [04:19:53] <Zauberfisch> well, guess I have to find some way to hotfix this
190: [04:20:35] <Nightjar> Yeah, from memory it's quite specific use case - basically only in the CMS, where it can get in the way good and proper.
191: [04:21:00] <Nightjar> Zauberfisch, since you're here, do you know if it's possible to hook /dev/build without using requireDefaultRecords on a DataObject?
192: [04:21:02] <Zauberfisch> yeah, my usecase is a front end gridfield
193: [04:21:26] <Nightjar> Zauberfisch, ah. Front end gridfield I have done before. I just used the standard gridfield, not a module.
194: [04:22:08] <Nightjar> But... it was over 6 months ago, I've largely forgotten the blockers I ran into (other than the fact I wasn't using DataObjects and gridfield doesn't like ArrayLists of ArrayData)
195: [04:22:47] <Zauberfisch> Nightjar: other than this very specific issue it works great
196: [04:22:58] <Zauberfisch> I've been using frontend gridfields for a while now
197: [04:23:06] <Nightjar> :)
198: [04:23:11] <Nightjar> Yeah, they're pretty boss.
199: [04:23:13] <Zauberfisch> and if you perform all validation in the form itself, it's not an issue
200: [04:23:23] <Nightjar> I actually showed off a bit of my work in that crappy lightening talk I gave last year
201: [04:23:29] <Nightjar> Very ad-lib :<
202: [04:23:41] <Zauberfisch> but if you have or want to validate on write of DataObjects
203: [04:23:47] <Zauberfisch> this edge case occures
204: [04:23:57] <Nightjar> ah, I see. It doesn't flow up stream nicely huh.
205: [04:24:01] <Zauberfisch> to your dev/build question. yes I belive this is somewhat possible
206: [04:24:28] <Nightjar> I wasn't using DataObjects, it was all external data (in a shared server though, was using DB::Query)
207: [04:25:25] <Nightjar> so I didn't run into that problem I guess since I wasn't validating besides on the form.
208: [04:25:53] <Nightjar> oh neat (re: dev/build) any pointers?
209: [04:26:18] <Zauberfisch> so, there are no direct hooks, but /dev/build pretty much just calls DatabaseAdmin->index() which calls DatabaseAdmin->build()
210: [04:26:24] <Zauberfisch> DatabaseAdmin is a Controller
211: [04:26:39] <Zauberfisch> so you can use a onAfterInit hook or such
212: [04:26:52] <Nightjar> Oh yeah, interesting.
213: [04:27:13] <Zauberfisch> or beforeCallActionHandler
214: [04:27:24] <Zauberfisch> create a data extension, attach it to DatabaseAdmin
215: [04:27:35] <Tron> If the Pokemon go servers are not up at 5:30 I will loose it
216: [04:27:36] <Zauberfisch> public function beforeCallActionHandler($request, $action) {}
217: [04:27:40] <Nightjar> ideally I'd use requireDefaultRecords, but I'm not applying a decorator or adding a ddataobject, so need somewhere to stash. I would like to sync the task to dev/build rather than sparodic dev/tasks
218: [04:28:22] <Zauberfisch> though be aware that this is before the actuall database build. so you can't assume that the database is ready at this time
219: [04:28:26] <Nightjar> Why's that Tron? Will be forced back to regular porn? xP
220: [04:28:35] <Zauberfisch> Nightjar: lol
221: [04:28:50] <Zauberfisch> beforeCallActionHandler would be suitable for configuration stuff, cleaning caches or what not
222: [04:28:56] <Nightjar> Zauberfisch, ah. Yeah, I'm needing to check records, so will need DB
223: [04:29:14] <Zauberfisch> ah, there is a afterCallActionHandler aswell
224: [04:29:19] <Zauberfisch> nvm.
225: [04:29:26] <Zauberfisch> afterCallActionHandler would be after build I think
226: [04:29:44] <Zauberfisch> same parameters
227: [04:29:58] <Nightjar> Just need to check/insert some records, so wouldn't be too bad.
228: [04:30:18] <Nightjar> basically to ensure existence of a folder, and access permissions (secureassets module)
229: [04:31:00] <Zauberfisch> then afterCallActionHandler is the way to go
230: [04:31:21] <Zauberfisch> or, if it's specific to folder, maybe requireDefaultRecords is more fitting, not sure
231: [04:31:25] <Nightjar> Sounds pretty legit, thanks Zauberfisch :D
232: [04:31:50] <Zauberfisch> but yeah, can confirm
233: [04:31:52] <Nightjar> yeah, but I have nowhere reasonable to put requireDefaultRecords, other than making a new DataExtension specifically for that purpose
234: [04:32:04] <Nightjar> which would have a normal runtime impact (although small, undesirable)
235: [04:32:12] <Zauberfisch> DatabaseAdmin->afterCallActionHandler(SS_HTTPRequest, 'index') is called
236: [04:32:19] <Zauberfisch> or rather on an extension
237: [04:33:00] <Nightjar> so DatabaseAdmin::extend('afterCallActionHandler', $request, $action) ;)
238: [04:33:22] <Nightjar> I will do this :)
239: [04:33:22] <Zauberfisch> yep
240: [04:33:31] <Zauberfisch> just make sure you return null
241: [04:33:32] * DorsaiNZ quit (Ping timeout: 250 seconds)
242: [04:33:42] <Nightjar> Thanks for your help, sorry I couldn't help you with your issue more.
243: [04:33:58] <Zauberfisch> because if you return a true-ish value it will take this as response to send to the browser instead of the /dev/build message
244: [04:34:16] <Zauberfisch> np
245: [04:34:22] <Nightjar> cool
246: [04:34:42] <Nightjar> Might use that to notify the user that records were checked/inserted then :)
247: [04:34:43] <Zauberfisch> I hope it actually works, I am just guessing here based on the code
248: [04:34:46] <Nightjar> hehe
249: [04:34:53] <Nightjar> that's all we ever do right? xD
250: [04:35:00] <Zauberfisch> I think it would replace the output rather than append
251: [04:35:04] <Nightjar> oic
252: [04:35:15] <Nightjar> ta, bbias
253: [04:35:19] <Tron> Lol Nightjar how did you know
254: [04:37:29] <Zauberfisch> Nightjar: to output messages just use echo
255: [04:37:42] <Zauberfisch> DatabaseAdmin seems to still use echo at this point
256: [04:37:52] * pippy quit (Ping timeout: 250 seconds)
257: [04:37:57] <Zauberfisch> so echo out messages and return null
258: [04:44:56] <Zauberfisch> of course PjaxResponseNegotiator does not have any hooks or means to replace it
259: [04:45:00] <Zauberfisch> fml
260: [04:48:36] <Nightjar> Zauberfisch, not vulnerable to the almighty Injector?
261: [04:48:51] <Zauberfisch> nope
262: [04:48:58] <Zauberfisch> at least not where I need it to be
263: [04:49:39] <Nightjar> :S
264: [04:49:48] <Nightjar> I knew there was a reason I shuddered and avoided it :P
265: [04:54:07] <Nightjar> hmm, I can't find afterCallActionHandler hook point :/
266: [04:54:22] <Nightjar> v3.3
267: [04:56:01] <Nightjar> Oh, it's on RequestHandler
268: [04:56:04] <Nightjar> cool
269: [04:57:42] * Hailwood quit (Remote host closed the connection)
270: [04:57:46] <Zauberfisch> Nightjar: yep. DataBaseadmin by itself is pretty bad actually
271: [04:58:02] <Zauberfisch> but because it's a Controller/RequestHandler you have some hooks
272: [04:58:09] <Nightjar> mm
273: [04:58:22] <Nightjar> so... are you up late or early Zauberfisch ?
274: [04:59:05] <Zauberfisch> late I guess
275: [05:04:34] <Zauberfisch> or maybe early
276: [05:04:37] <Zauberfisch> not sure
277: [05:04:47] <Nightjar> haha
278: [05:04:55] <Nightjar> that middle zone where it all blends eh
279: [05:04:59] <Zauberfisch> yep
280: [05:05:28] <Zauberfisch> was sleeping from 4pm to 10pm yesterday or something
281: [05:11:50] <Nightjar> oic
282: [05:21:12] * Tron quit (Ping timeout: 250 seconds)
283: [05:43:08] * DanaeNZ quit (Quit: TIME TO FEED)
284: [05:57:04] * micmania1 quit (Quit: micmania1)
285: [06:19:19] * Stomach quit (Quit: zzz)
286: [06:31:56] <Nightjar> alright, goodnight
287: [06:31:58] * Nightjar quit (Quit: Leaving)
288: [07:04:52] * Stomach has joined #silverstripe
289: [07:09:06] * wmk has joined #silverstripe
290: [07:13:07] * wmk_ has joined #silverstripe
291: [07:14:27] * arnhoe has joined #silverstripe
292: [07:16:34] * wmk quit (Ping timeout: 240 seconds)
293: [07:17:06] * Stomach quit (Quit: zzz)
294: [07:18:00] * micmania1 has joined #silverstripe
295: [07:59:21] * Stomach has joined #silverstripe
296: [08:03:55] * slievr has joined #silverstripe
297: [08:04:03] * kinglozzer has joined #silverstripe
298: [08:10:18] * DarjusIT has joined #silverstripe
299: [08:15:43] * wmk_ is now known as wmk
300: [08:22:31] * elgabbu quit (Quit: Page closed)
301: [08:23:18] * elgabbu has joined #silverstripe
302: [08:30:18] <elgabbu> Good morning :) ... i am trying to add a has_one relationship via yml ...
303: [08:32:39] <elgabbu> ok managed :)
304: [08:39:25] <wmk> !flush elgabbu
305: [08:39:26] <ss-helper> elgabbu: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
306: [08:39:31] <wmk> ;)
307: [08:39:59] <wmk> elgabbu, as long as you don't need to add form fields that's a cool alternative to a dataextension
308: [08:40:06] <wmk> e.g. if you use scaffolding
309: [08:47:02] * Stomach quit (Quit: zzz)
310: [09:32:42] * micmania1 quit (Quit: micmania1)
311: [09:42:12] * cloph_away is now known as cloph
312: [09:45:51] * micmania1 has joined #silverstripe
313: [10:24:56] * tester has joined #silverstripe
314: [10:28:19] <tester> hello, I have an issue with dependentdropdownfield,
315: [10:28:50] <tester> here is the code with comment line no. 32 http://www.sspaste.com/paste/show/5784c62d1e436
316: [10:30:18] <kinglozzer> tester: try $map[$val->Year] = $val->Year;
317: [10:36:57] <tester> ok let me try
318: [10:38:31] <tester> its giving me error
319: [10:40:18] <tester> here is the screenshot https://snag.gy/H3jveW.jpg
320: [10:46:24] <elgabbu> wmk yes indeed :)
321: [10:51:00] * guci0 has joined #silverstripe
322: [11:02:40] <tester> anybody to help
323: [11:06:03] <wmk> tester, hard to tell, get the error, not just the message that there is an error
324: [11:06:25] <wmk> best check the network traffic, e.g. with firebug's network tab
325: [11:09:10] * tester quit (Ping timeout: 250 seconds)
326: [11:14:17] * micmania1 quit (Quit: micmania1)
327: [11:17:54] * tester has joined #silverstripe
328: [11:18:14] <tester> I am having this issue please help me to resolve https://snag.gy/H3jveW.jpg
329: [11:19:52] <swaiba> tester can you get the full stack trace please...
330: [11:21:19] <tester> here is the code with comment on line 32 http://www.sspaste.com/paste/show/5784d2a279e5a
331: [11:24:48] <tester> dropdownfield is working fine its returning value of the field and modelname field is updating right, but when I select any model name its not updating year field
332: [11:26:12] <swaiba> tester look, you've sent a picture with an error on 82 of CompareVechiles.php and then sent a completely different file with "a comment on line 32"
333: [11:26:21] <swaiba> this isn't helping us help you...
334: [11:27:50] <tester> let me explain that error too,its due to line 39, I by mistake sent you that line its this causing error $map[$val->Year] and I have removed that already
335: [11:30:01] <tester> check this screeshot https://snag.gy/ZbpASn.jpg, no any year is returned
336: [11:33:30] <wmk> tester, of course, when an error is returned the field crashes
337: [11:33:54] <wmk> please check the network traffic, normally F12 get's you to some tools in firefox, IE, chrome...
338: [11:34:55] <tester> ok, wmk help me only for one thing, do you see modelname dependentfield in screenshot, how can I get its value when I select any
339: [11:35:37] <wmk> dunno, sorry
340: [11:38:08] <tester> means?
341: [11:41:32] <tester> is there any other way?
342: [11:52:44] * slievr quit (Quit: Leaving.)
343: [12:04:00] * slievr has joined #silverstripe
344: [12:11:03] * tester quit (Quit: Page closed)
345: [12:24:00] * UndefinedOffset has joined #silverstripe
346: [12:51:22] * muskie9 has joined #silverstripe
347: [13:27:27] * darianno has joined #silverstripe
348: [13:59:11] * wmk quit (Ping timeout: 240 seconds)
349: [14:02:19] * DarjusIT_ has joined #silverstripe
350: [14:05:30] * DarjusIT quit (Ping timeout: 246 seconds)
351: [14:09:26] * DarjusIT__ has joined #silverstripe
352: [14:09:27] <ss-helper> DarjusIT__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
353: [14:12:33] * DarjusIT_ quit (Ping timeout: 246 seconds)
354: [14:16:21] * jbrungar quit (Ping timeout: 246 seconds)
355: [14:16:40] * jbrungar has joined #silverstripe
356: [14:31:01] <AlphaCactus> tester is long gone, but I don't see any $val being passed into the anonymous functions so how is that supposed to work?
357: [14:32:56] <swaiba> AlphaCactus the dependant dropdown field?
358: [14:34:34] <AlphaCactus> in the code he sent for that yeah. I'm not really trying to solve his problem, just understand how it is possible that those functions could even work without a value passed in
359: [14:38:53] <swaiba> well look more at the usage example on the read.me on github, the functions that are used do take arguments
360: [15:00:17] <ss-helper> SilverStripe ModelAdmin menu title translation - http://stackoverflow.com/questions/38327830/silverstripe-modeladmin-menu-title-translation
361: [15:02:08] <slievr> does ss-helper just watch the silverstripe tag?
362: [15:07:09] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
363: [15:13:27] <swaiba> I guess so slievr
364: [15:18:54] * agent44 has joined #silverstripe
365: [15:27:52] * agent44 quit (Quit: zzz)
366: [15:29:56] * agent44 has joined #silverstripe
367: [15:31:03] * arnhoe quit ()
368: [15:34:15] * agent44 quit (Ping timeout: 258 seconds)
369: [15:44:37] * agent44 has joined #silverstripe
370: [15:47:44] * houleness has joined #silverstripe
371: [15:48:19] <houleness> Does anyone know how I can make all the values in a checkboxsetfield default to 1?
372: [15:48:53] <houleness> e.g. on something like this - http://www.sspaste.com/paste/show/578511544e99b
373: [15:49:16] <houleness> the setValue(‘1’) obviously isn’t working, but I’m hoping it’s something simple like that
374: [15:54:04] * slievr quit (Quit: Leaving.)
375: [15:54:36] * houleness quit (Quit: houleness)
376: [16:00:18] <ss-helper> Silverstripe add data from a Form to a 4 levels of page Classes - http://stackoverflow.com/questions/38333521/silverstripe-add-data-from-a-form-to-a-4-levels-of-page-classes
377: [16:07:28] <AlphaCactus> houleness: I think it expects each of the checkboxes to have a unique value?
378: [16:12:52] <lietzmk> http://api.silverstripe.org/3.3/class-CheckboxSetField.html the value is the second parameter in source
379: [16:13:34] * muskie9 quit (Ping timeout: 240 seconds)
380: [16:15:51] * muskie9 has joined #silverstripe
381: [16:28:05] * swaiba quit (Remote host closed the connection)
382: [16:28:26] * kinglozzer quit ()
383: [16:30:19] <ss-helper> SilverStripe change $menu_icon in CMSPageController - http://stackoverflow.com/questions/38334372/silverstripe-change-menu-icon-in-cmspagecontroller
384: [17:01:09] * terryapodaca quit (Quit: Leaving.)
385: [17:08:12] * muskie9 quit (Ping timeout: 246 seconds)
386: [17:14:11] * agent44 quit (Quit: zzz)
387: [17:15:19] <ss-helper> Silverstripe How publish data sent from Form to parent IDs - http://stackoverflow.com/questions/38333521/silverstripe-how-publish-data-sent-from-form-to-parent-ids
388: [17:28:55] * Liquide has joined #silverstripe
389: [17:51:49] * shellbackpacific has joined #silverstripe
390: [17:52:54] <shellbackpacific> hey all. anyone know how to get fulltextsearch to favor (or even recognize) exact phrases? ex: "find exactly this"
391: [18:28:20] * muskie9 has joined #silverstripe
392: [18:30:21] <ss-helper> Silverstripe selected in DropdownField - http://stackoverflow.com/questions/38144859/silverstripe-selected-in-dropdownfield
393: [18:39:54] * shellbackpacific quit (Ping timeout: 246 seconds)
394: [18:48:29] * Stomach has joined #silverstripe
395: [18:50:59] * Stomach quit (Client Quit)
396: [19:02:56] * shellbackpacific has joined #silverstripe
397: [19:37:02] * neomang quit (Ping timeout: 250 seconds)
398: [20:00:57] * neomang has joined #silverstripe
399: [20:16:52] * Stomach has joined #silverstripe
400: [20:27:56] * UndefinedOffset quit (Quit: Leaving.)
401: [20:48:35] * DimiStripe quit (Quit: DimiStripe)
402: [20:48:56] * pippy has joined #silverstripe
403: [21:04:50] * DimiStripe has joined #silverstripe
404: [21:05:59] * shellbackpacific quit (Ping timeout: 244 seconds)
405: [21:17:17] * Hailwood has joined #silverstripe
406: [21:26:02] * gelignite has joined #silverstripe
407: [21:26:50] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
408: [21:44:06] * micmania1 has joined #silverstripe
409: [21:46:46] * DarjusIT__ quit (Read error: Connection reset by peer)
410: [21:57:40] * Nightjar has joined #silverstripe
411: [22:11:50] * micmania1 quit (Quit: micmania1)
412: [22:12:22] * micmania1 has joined #silverstripe
413: [22:15:24] <ss-helper> How to detect Silverstripe page is loaded in Controller as parent or child - http://stackoverflow.com/questions/38339708/how-to-detect-silverstripe-page-is-loaded-in-controller-as-parent-or-child
414: [22:26:53] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
415: [22:30:55] * DanaeNZ has joined #silverstripe
416: [22:34:07] <DanaeNZ> gods i'm too tired for this shit
417: [22:39:33] <Stomach> :(
418: [22:45:04] * Nightjar quit (Ping timeout: 240 seconds)
419: [23:01:43] * Nightjar has joined #silverstripe
420: [23:17:09] <DanaeNZ> hmm there is literally not enough time to finish this project with just one Danae
421: [23:30:25] <ss-helper> Silverstripe selected in DropdownField - http://stackoverflow.com/questions/38144859/silverstripe-selected-in-dropdownfield
422: [23:44:04] * Nightjar quit (Ping timeout: 240 seconds)
423: [23:48:10] * Nightjar has joined #silverstripe
424: [23:53:36] <pippy> despite having used it for years i still struggle with git
425: [23:54:07] <pippy> even basic things like branching still causes headaches

These logs were automatically created by ss-log on irc.freenode.net.