Log message #4103931

# At Username Text
# Dec 15th 2017, 20:00 joopm i found out
# Dec 15th 2017, 19:49 joopm ?
# Dec 15th 2017, 19:49 joopm but maybe you dont why save only the last item of foreach
# Dec 15th 2017, 19:49 joopm hihi
# Dec 15th 2017, 19:48 admad since you aren't rafael.js i am not :slightly_smiling_face:
# Dec 15th 2017, 19:46 joopm excusme i am not sure if you talking to me
# Dec 15th 2017, 19:45 admad @rafael.junqueira.sant i still can't understand what problem you are having. Mind giving it one more go? Start by showing what code are using for the flash component
# Dec 15th 2017, 19:41 joopm oh its seems everybody is out
# Dec 15th 2017, 19:32 joopm i saw something with create() but i can not use
# Dec 15th 2017, 19:32 joopm the symptons is only the last Entity is saved
# Dec 15th 2017, 19:31 joopm i am triing to save many records with a foreach
# Dec 15th 2017, 19:31 joopm and last ask here
# Dec 15th 2017, 19:31 joopm try code
# Dec 15th 2017, 19:31 joopm before asking a made a lot of experiments
# Dec 15th 2017, 19:30 joopm hello all
# Dec 15th 2017, 17:55 dereuromark Es: you need to be more specific
# Dec 15th 2017, 17:55 Es0teric question -- does anyone know of a way that cake interpolates strings within lang files in 2.x?
# Dec 15th 2017, 17:44 rafael.junqueira.sant @dereuromark I'll be using my jerry rig for now, to save time, until the issue is fixed. Thank you for your attention.
# Dec 15th 2017, 17:26 Es0teric question -- does anyone know of a way that cake interpolates strings within lang files in 2.x?
# Dec 15th 2017, 17:25 rafael.junqueira.sant That's the one I tried to use.
# Dec 15th 2017, 17:25 rafael.junqueira.sant By default, cakephp comes with Template/Element/Flash/success.ctp - is that what you're talking about?
# Dec 15th 2017, 17:23 dereuromark but that is besides your problem, yours is about $message etc
# Dec 15th 2017, 17:23 dereuromark if you put it into the same directory
# Dec 15th 2017, 17:22 dereuromark 'Flash/my_custom_whatever'
# Dec 15th 2017, 17:22 dereuromark Do you see 'element' => 'Flash/success'? I would expect your custom overwrite to have the same folder nesting
# Dec 15th 2017, 17:22 rafael.junqueira.sant alright, next time.
# Dec 15th 2017, 17:21 dereuromark Please never here inline, always as pastebin or inside the ticket.
# Dec 15th 2017, 17:13 rafael.junqueira.sant To me, the session seems normal.
# Dec 15th 2017, 17:09 rafael.junqueira.sant I'll edit it, I printed it after rendering Flash, which clears it from the session
# Dec 15th 2017, 17:08 slackebot3 'fixedNowTime' => false }, 'modified' => object(Cake\I18n\FrozenTime) { 'time' => '2017-11-09T09:53:40+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, 'img_hash' => 'hash' ] ] ]
# Dec 15th 2017, 17:08 rafael.junqueira.sant [ 'Config' => [ 'time' => (int) 1513357646 ], 'Flash' => [], 'user_id' => (int) 3, 'full_name' => 'Rafael', 'email' => 'email@gmail.com', 'img_hash' => 'hash', 'Auth' => [ 'User' => [ 'id' => (int) 3, 'full_name' => 'Rafael', 'email' => 'email@gmail.com', 'deleted' => (int) 0, 'created' => object(Cake\I18n\FrozenTime) { 'time' => '2017-11-09T09:40:36+00:00', 'timezone' => 'UTC',
# Dec 15th 2017, 17:07 dereuromark And compare with that one in tests: https://github.com/cakephp/cakephp/blob/master/tests/TestCase/View/Helper/FlashHelperTest.php#L74
# Dec 15th 2017, 17:05 dereuromark how does your structure look like
# Dec 15th 2017, 17:05 dereuromark You can help providing your session info
# Dec 15th 2017, 17:05 rafael.junqueira.sant thank you very much!
# Dec 15th 2017, 17:04 dereuromark @admad Would you mind reopening with the new info collected? Sounds like a core issue with the session structure to be changed in a few this helper feature doesnt work anymore.
# Dec 15th 2017, 17:02 rafael.junqueira.sant I would like to rely on plugins only if really necessary, and seek to fix unexpected behaviors in the core.
# Dec 15th 2017, 17:01 rafael.junqueira.sant either the problem is in the documentation, or in the code. maybe there is something I missing, but then the documentation isn't any clear for me.
# Dec 15th 2017, 17:01 rafael.junqueira.sant if I continue the ticket, I think it will be disturbing to him.
# Dec 15th 2017, 17:00 rafael.junqueira.sant it seems you understood what happened. can you tell admad in the ticket? maybe he'll understand you more clearly
# Dec 15th 2017, 16:59 dereuromark I remember that there were changes around stacked messages and thus a now nested structure.. (sth I have been using for 10 years now using my own Flash plugin, thus I wouldnt know what happened in core)