From fb04391eb4e8f2eef94a43dc5573b415a70e6935 Mon Sep 17 00:00:00 2001 From: DoggersHusky Date: Mon, 29 Sep 2025 13:59:07 -0300 Subject: [PATCH] fix ambiguous error --- src/Forms/GridFieldSortableRows.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/GridFieldSortableRows.php b/src/Forms/GridFieldSortableRows.php index ed1a09c..8600217 100644 --- a/src/Forms/GridFieldSortableRows.php +++ b/src/Forms/GridFieldSortableRows.php @@ -335,7 +335,7 @@ protected function fixSortColumn($gridField, SS_List $dataList) } else if ($this->append_to_top) { if ($hasVersioned) { // For versioned objects, modify them with the ORM so that the *_versions table is updated - $itemsToUpdate = $modelClass::get()->where(($list instanceof RelationList ? '"' . $list->foreignKey . '" = ' . $owner->ID : '"' . $table . '".' . $idCondition) . (!empty($topIncremented) ? ' AND "ID" NOT IN(\'' . implode('\',\'', $topIncremented) . '\')' : '')); + $itemsToUpdate = $modelClass::get()->where(($list instanceof RelationList ? '"' . $list->foreignKey . '" = ' . $owner->ID : '"' . $table . '".' . $idCondition) . (!empty($topIncremented) ? ' AND "' . $table . '"."ID" NOT IN(\'' . implode('\',\'', $topIncremented) . '\')' : '')); if ($itemsToUpdate->exists()) { foreach ($itemsToUpdate as $item) { $item->$sortColumn = $item->$sortColumn + 1;