|
@@ 1956-1959 (lines=4) @@
|
| 1953 |
|
$evalCodesArray = GeneralUtility::trimExplode(',', $tcaFieldConf['eval'], true); |
| 1954 |
|
$otherRecordsWithSameValue = []; |
| 1955 |
|
$maxCheckedRecords = 0; |
| 1956 |
|
if (in_array('maximumRecordsCheckedInPid', $evalCodesArray, true)) { |
| 1957 |
|
$otherRecordsWithSameValue = $this->getRecordsWithSameValue($table, $id, $field, $value, $realPid); |
| 1958 |
|
$maxCheckedRecords = (int)$tcaFieldConf['validation']['maximumRecordsCheckedInPid']; |
| 1959 |
|
} |
| 1960 |
|
if (in_array('maximumRecordsChecked', $evalCodesArray, true)) { |
| 1961 |
|
$otherRecordsWithSameValue = $this->getRecordsWithSameValue($table, $id, $field, $value); |
| 1962 |
|
$maxCheckedRecords = (int)$tcaFieldConf['validation']['maximumRecordsChecked']; |
|
@@ 1960-1963 (lines=4) @@
|
| 1957 |
|
$otherRecordsWithSameValue = $this->getRecordsWithSameValue($table, $id, $field, $value, $realPid); |
| 1958 |
|
$maxCheckedRecords = (int)$tcaFieldConf['validation']['maximumRecordsCheckedInPid']; |
| 1959 |
|
} |
| 1960 |
|
if (in_array('maximumRecordsChecked', $evalCodesArray, true)) { |
| 1961 |
|
$otherRecordsWithSameValue = $this->getRecordsWithSameValue($table, $id, $field, $value); |
| 1962 |
|
$maxCheckedRecords = (int)$tcaFieldConf['validation']['maximumRecordsChecked']; |
| 1963 |
|
} |
| 1964 |
|
|
| 1965 |
|
// there are more than enough records with value "1" in the DB |
| 1966 |
|
// if so, set this value to "0" again |