Commit Graph

27 Commits (e3bee29887455820863e12d9225d8244fb1c4461)

Author SHA1 Message Date
Vitaliy Filippov 5364c8afe4 Rewrite bug-visibility to handle dependent fields correctly in all cases.
Example of incorrect behaviour possible in old version:
1) Field A has value_field=C
2) Field B has value_field=D and null_field=C
3) Suppose field A gets initialised first. It triggers initialisation of C,
   C alters values of A and nullability of B. Then B gets initialised, and
   triggers initialisation of D, which alters values of B and overwrites
   its nullability previously altered by A.
2014-10-07 15:00:54 +04:00
Vitaliy Filippov 6237a5cb74 Fix product hidden field exception for creation form 2014-10-07 15:00:54 +04:00
Vitaliy Filippov 6425bfe311 Allow keywords to depend on other fields (for example product) 2014-10-07 15:00:54 +04:00
Vitaliy Filippov e50428a42b Remove user_id_to_login procedural API; set default values for non-select fields on bug form 2014-10-07 15:00:54 +04:00
Vitaliy Filippov 0fdb364160 Fix keyword webservice, take all keyword list from field_metadata 2014-10-07 14:58:16 +04:00
Vitaliy Filippov cb7ddc4331 Refactor result reporting, move the rest of ORM code from process_bug.cgi to actual ORM class 2014-10-07 14:58:16 +04:00
Vitaliy Filippov 4899654c43 Allow field values and flags to be controlled by an empty value 2014-10-07 14:58:15 +04:00
Vitaliy Filippov eb96bfda90 Make all options visible for empty controlling value also in js 2014-10-07 14:58:14 +04:00
Vitaliy Filippov 86deae0270 Treat empty visibility value sets as "always invisible" instead of "always visible" 2014-10-07 14:58:14 +04:00
Vitaliy Filippov fddf47e859 Use same URI for both types of fieldvaluecontrol.cgi -- they're identical 2014-10-07 14:58:14 +04:00
Vitaliy Filippov d0793c51a3 Add separate control fields for NULL and for default values 2014-10-07 14:58:14 +04:00
Vitaliy Filippov 67ba0de962 Use dependent default values on bug change form, use global default values on bug entry form 2014-10-07 14:58:14 +04:00
Vitaliy Filippov 74ecc3d2c5 Remove non-hash Bugzilla->fieldvaluecontrol, move dependent default values into a separate table, simplify bz_add_column 2014-10-07 14:58:14 +04:00
Vitaliy Filippov 79711e2cbd Make "dependent nullable" work in JS on bug form 2014-10-07 14:58:13 +04:00
Vitaliy Filippov 57eb2dac62 * Match selected values on name in bug-visibility.js
* Fix "verify field values"
* Do not display "verify groups" in case of same group control set for the old and the new products
2014-05-29 18:53:56 +04:00
Vitaliy Filippov bd4d362b11 Do not show --- option for multi-selects, fix multi-select setter 2014-05-27 19:24:37 +04:00
Vitaliy Filippov a90c011d34 Fix field showing/hiding 2014-05-18 03:35:50 +04:00
Vitaliy Filippov eda941c84e Hide invisible custom fields correctly 2014-05-16 18:52:41 +04:00
Vitaliy Filippov 0b5fe6f785 Skip re-filling of field values on bug edit page load 2014-05-16 18:52:40 +04:00
Vitaliy Filippov 336ca0b08e - Fix bug cloning
- Fix filling of dependent fields on bug entry form
- Do not set values directly into $vars in enter_bug.cgi
- Remove dynamic visibility_value_id code from field creation form

(enter_bug.cgi still operates names, not IDs)
2014-05-16 18:52:09 +04:00
Vitaliy Filippov 30514a4833 Show/hide fields only by JS, do not attempt doing it from template (fixes bug entry form) 2014-05-16 18:52:09 +04:00
Vitaliy Filippov 1a79246fed Bugzilla::Bug code style 2014-05-16 18:52:08 +04:00
vkoptev b6114771d2 Bug 91153 - add interface for setting default values for custom fields
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1710 6955db30-a419-402b-8a0d-67ecbb4d7f56
2013-07-03 14:39:59 +00:00
vfilippov 311d434da5 Bug 90001 - Empty hash in visibility control now means always show the value
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1612 6955db30-a419-402b-8a0d-67ecbb4d7f56
2012-11-02 12:54:16 +00:00
vfilippov 0d795c108e Bug 75225
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1397 6955db30-a419-402b-8a0d-67ecbb4d7f56
2011-09-29 16:08:41 +00:00
vfilippov 0752e18573 Bug 81185, Bug 70605 - very global Bugzilla Search optimisation. See http://wiki.4intra.net/Bugzilla-Search for details
Bug 63855 - Fix quicksearch


git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1295 6955db30-a419-402b-8a0d-67ecbb4d7f56
2011-07-20 12:48:26 +00:00
vfilippov 055928b6c3 Bug 75225 - more correct scripts
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1204 6955db30-a419-402b-8a0d-67ecbb4d7f56
2011-02-02 13:16:11 +00:00