Anmari
August 24, 2022, 10:44am
1
Infos:
Used Zammad version: 5.3.2
Used Zammad installation type: package
Operating system: Ubuntu
Browser + version: Chrome
Expected behavior:
User.where(organization_id: 31).update_all(image: "10f32074cf96a7865115e83f21290eb6")
updates attribiute like
User.find(899).update_attribute(:image,"10f32074cf96a7865115e83f21290eb6")
Actual behavior:
irb(main):001:0> User.where(organization_id: 31).update_all(image: "10f32074cf96a7865115e83f21290eb6")
irb(main):002:0*
=> 13
No attributes are changed.
Anmari
August 24, 2022, 10:53am
2
Solution: User.where(organization_id: 31).update(image: "10f32074cf96a7865115e83f21290eb6")
Apart from this being dangerous for copy cats, update_all
should to the trick over update
. Because update
only updates one set. Normally™️
Anmari
August 24, 2022, 11:42am
4
update_all didnt work like mention in my initial post just says => 13 whitch is the numbers of users in this orgarnisation but didnt change any attribute
I doubt that as long as you provide a full output of the command with an error message.
You heard of caching… ?
Anmari
August 24, 2022, 11:43am
6
the complete console output is mention in the inital post, please read it…
Right and it shows no error.
So most likely outdated caches or browser caching.
system
Closed
December 22, 2022, 11:45am
8
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.