Skip to content

Commit

Permalink
Fixed a bug on formula when obj.is_active == 0, forced formula to be …
Browse files Browse the repository at this point in the history
…true

fixes #14
  • Loading branch information
tomolimo committed Dec 16, 2016
1 parent d993dc5 commit 6409db0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/formvalidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,10 @@ along with GLPI. If not, see <http://www.gnu.org/licenses/>.
// eval(txtField.parent().find('.select2-chosen').text())
}
formulaList[index] = obj.formula || defaultFormula;
} else {
if (obj.is_active == 0) {
formulaList[index] = 'true';
}
} else { // field not found in current form
//obj.is_active = 0; // field not found in current form
formulaList[index] = 'true';
}
Expand Down

0 comments on commit 6409db0

Please sign in to comment.