Closed (fixed)
Project:
Gallerix
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2010 at 23:34 UTC
Updated:
15 Sep 2011 at 00:43 UTC
Within gallerix_admin_settings() in management.inc, should use "#default_value" instead of "#value for $entry['name'].
Also, the name check should also check name for "original".
Comments
Comment #1
AlexisWilke commentedAh! That would explain. 8-)
I checked in your fix and tweaked the validation function a bit too.
Thank you!
Alexis Wilke
Comment #2
bmstak commentedNeed to set the #value for thumbnail and the internal name should be locked once it has been created.
Comment #3
AlexisWilke commentedTak,
The #disabled is already set now. Are you saying that if disabled we MUST have #value for the name and not #default_value? I would think that the #disabled should do its work...
Is "frame" what you call the internal name or would there be another? Because your test uses if ($name == '') which seems wrong to me. The two internal names and #disabled are already checked in.
Thank you.
Alexis
Comment #4
AlexisWilke commentedI guess there is a big mix-up with the last 3 issues here... 8-}
I put a fix in. I see that you set disabled on $name = '', which means only allow new names, never allow editing of an existing name. Was that really your intend?
Thank you.
Alexis
Comment #5
bmstak commentedAlexis,
Yes, that was my intention. Disable changing the name once that name is set.
Tak.
Comment #6
AlexisWilke commentedPlease, feel free to re-open if it doesn't work the way you think it should. 1.5 includes most of these changes.
Thank you.
Alexis Wilke