Merge branch 'WarehouseProject/fix' into 'master'

Rename search method in WarehouseOfferModel and update usage in...

See merge request fronk/thetool!1923
This commit is contained in:
Luca Haid
2025-12-02 15:01:22 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ class WarehouseOfferController extends TTCrud
{
$id = $this->request->id;
if (!$id) self::sendError("ID fehlt");
$journalEntries = WarehouseOfferJournalModel::search(['offerId' => $id], ['create' => 'DESC']);
$journalEntries = WarehouseOfferJournalModel::searchOfferJournal(['offerId' => $id], ['create' => 'DESC']);
self::returnJson($journalEntries);
}

View File

@@ -93,7 +93,7 @@ class WarehouseOfferJournalModel extends TTCrudBaseModel
* @param false $count
* @return array|int
*/
public static function search(array $filter = [], array $orderBy = [], $limit = null, $offset = null, $count = false)
public static function searchOfferJournal(array $filter = [], array $orderBy = [], $limit = null, $offset = null, $count = false)
{
$db = self::getDB();
$tableName = self::getFullyQualifiedTable();