Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008086TestLinkCustom fieldspublic2017-09-22 12:412017-09-23 07:32
Assigned To 
PlatformVirtual machineOSLinuxOS VersionCentos 7.3
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
Summary0008086: Cannot update active and required
DescriptionThe [Update active and required] button from the Custom fields management screen doesn't react to clicks.
Steps To Reproduce1) Enter the Custom fields management screen.
2) Take a field with "Required" checkbox empty.
3) Tick on "Required" checkbox.
4) Click on the [Update active and required] button.

Nothing happens.
Additional InformationWe've re-entered the page to check if Testlink saves and doesn't refresh, but the change (ticked box) is not saved.

Custom field management is not a heavy duty functionality, but at this point the closest workaround is to access the database.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL (irrelevant)
BrowserInternet Explorer 11
PHP Version7.0
QA Team - Task Workflow Status
Attached Files

- Relationships
duplicate of 0007995closedfman Custom Fields Checkbox Changes not Saved 

-  Notes
fman (administrator)
2017-09-22 15:34

please get latest code from github, do fresh install, retest & provide feedback
Mr.Bricodage (updater)
2017-09-22 19:24

Just tested with last code : the issue is still here.

It seems that using [Update active and required] button save the 3 checkboxes as unckecked for the CF in the project, no matter the value set by the user.
Mr.Bricodage (updater)
2017-09-22 21:22

in file lib\cfields\cfieldsTprojectAssign.php, function doSimpleBooleanMgmt

seems that row used to know if a value is already activated for the CF

    if( isset($argsObj->$operativeInput[$id]) )

always return false.
Mr.Bricodage (updater)
2017-09-22 21:39
edited on: 2017-09-22 21:40

PHP issue (5.4.45 here), can be fixed by splitting the line into 2 lines :

- if( isset($argsObj->$operativeInput[$id]) )
+ $CFoperative = (array) $argsObj->$operativeInput;
+ if( isset($CFoperative[$id]) )

fman (administrator)
2017-09-23 07:31
edited on: 2017-09-23 07:32

thanks, anyway I think I've declared tha 5.6 is minimum req.
I'm using PHP 7.1.x

I'm going to test with 7.1.x because reporter said he use PHP 7.0

- Issue History
Date Modified Username Field Change
2017-09-22 12:41 izubiaurre New Issue
2017-09-22 15:34 fman Note Added: 0026869
2017-09-22 19:24 Mr.Bricodage Note Added: 0026870
2017-09-22 21:22 Mr.Bricodage Note Added: 0026871
2017-09-22 21:39 Mr.Bricodage Note Added: 0026872
2017-09-22 21:40 Mr.Bricodage Note Edited: 0026872 View Revisions
2017-09-22 21:44 Mr.Bricodage Relationship added duplicate of 0007995
2017-09-23 07:31 fman Note Added: 0026873
2017-09-23 07:32 fman Note Edited: 0026873 View Revisions

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker