Client and server side field value checking

Max Kanat-Alexander mkanat at bugzilla.org
Wed Mar 9 22:30:19 UTC 2011


On 03/09/2011 04:43 AM, Gervase Markham wrote:
> Summary: Are there any plans or bugs about having client-side field
> checks which match the server-side checks, perhaps autogenerated from a
> common source?

	Yes, I've thought about doing this via AJAX, but it's not a
high-priority item at this point.

> Details: say I want to customize my Bugzilla so that only people in a
> particular group can change a certain field to a certain value. I hack
> check_can_change_field() and Bugzilla enforces this - great. But it
> would be nice if the user was warned before they got as far as
> submitting the bug.

	In modern versions of Bugzilla, fields do not appear editable if
check_can_change_field returns false. (Of course, I suppose you could
create complex situations where that wasn't true.)

> If it's a case of just "can change the field at all" or "can't change
> the field at all", then you can change the template so the field is
> disabled or not, as the case may be. But it rapidly gets more
> complicated if you want to say "Only people in group X can set
> resolution FOO".

	That will be addressed by this bug:

	https://bugzilla.mozilla.org/show_bug.cgi?id=372978

	-Max
-- 
http://www.bugzillasource.com/
Competent, Friendly Bugzilla, Perl, and IT Services



More information about the developers mailing list