how to receive the field value in validator function?
cmadmin
cmadmin at unisoc.com
Thu Jun 15 11:07:57 UTC 2023
Hi:
I want to get the customize field’s value in Bug.pm,
For example I create a field with named cf_orientation and cf_location,
If the value of cf_orientation is Plat and status in Resolved then the cf_location should not be null,
I check the cf_location in the validator function sub _check_cf_location
, in which I get the value of cf_orientation by the following:
my $orientation = blessed($invocant) ? $invocant->cf_orientation : $params->{cf_orientation};
but I can not get the value, the $orientation is null (---),
Only I update the two field sortkey, that the sortkey of cf_orientation is smaller than cf_location,
The value of cf_orientation can receive in the _check_cf_location
I don’t know why, and cannot find the reason in bugzilla document.
Could you tell me the root-cause ?
Thank you very much
________________________________
This email (including its attachments) is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Unauthorized use, dissemination, distribution or copying of this email or the information herein or taking any action in reliance on the contents of this email or the information herein, by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited. If you are not the intended recipient, please do not read, copy, use or disclose any part of this e-mail to others. Please notify the sender immediately and permanently delete this e-mail and any attachments if you received it in error. Internet communications cannot be guaranteed to be timely, secure, error-free or virus-free. The sender does not accept liability for any errors or omissions.
本邮件及其附件具有保密性质,受法律保护不得泄露,仅发送给本邮件所指特定收件人。严禁非经授权使用、宣传、发布或复制本邮件或其内容。若非该特定收件人,请勿阅读、复制、 使用或披露本邮件的任何内容。若误收本邮件,请从系统中永久性删除本邮件及所有附件,并以回复邮件的方式即刻告知发件人。无法保证互联网通信及时、安全、无误或防毒。发件人对任何错漏均不承担责任。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bugzilla.org/pipermail/support-list/attachments/20230615/ed2766c5/attachment.html>
More information about the support-list
mailing list