[BUGFIX] TCA tree with maxitems=1 doesn't work
authorMarco Huber <mail@marco-huber.de>
Thu, 17 Mar 2011 12:53:13 +0000 (13:53 +0100)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Tue, 26 Apr 2011 13:13:50 +0000 (15:13 +0200)
commit3019ca92f55faf650ad5981a001e323a2e91eab6
tree62162ef5d93571f8a75efcbbe8afe94ffaa1d6f5
parentf2cd90a888db4b5865bc3f82dbf9ef07ced92a54
[BUGFIX] TCA tree with maxitems=1 doesn't work

* Check if value of the parent field is neither empty nor 0,
  because t3lib_transferData returns 0 if the database field
  is empty and maxitems=1
* Only check if the selected nodes reached the maxitems limit
  if a node is checked, not if one is unchecked.

Change-Id: I89efc539cf720a6798d244e0a499d6bebff32d9f
Resolves: #25347
Reviewed-on: http://review.typo3.org/1211
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Marco Huber
Tested-by: Marco Huber
Reviewed-by: Andreas Wolf
t3lib/js/extjs/tree/tree.js
t3lib/tceforms/class.t3lib_tceforms_tree.php