Merge branch '1.8.x' into bump-response-format

This commit is contained in:
Darshan
2025-07-22 09:51:49 +05:30
committed by GitHub
6 changed files with 43 additions and 36 deletions
@@ -161,7 +161,9 @@ class Create extends Action
throw new Exception($this->getParentNotAvailableException(), "$contextType not available: " . $oldAttributes[$attributeIndex]['key']);
}
$lengths[$i] ??= null;
if (empty($lengths[$i])) {
$lengths[$i] = null;
}
if ($attributeArray === true) {
$lengths[$i] = Database::ARRAY_INDEX_LENGTH;
@@ -187,6 +189,7 @@ class Create extends Action
$collection->getAttribute('attributes'),
$dbForProject->getAdapter()->getMaxIndexLength(),
$dbForProject->getAdapter()->getInternalIndexesKeys(),
$dbForProject->getAdapter()->getSupportForIndexArray()
);
if (!$validator->isValid($index)) {