Describe the problem
If you try to search for records it will throw and web error:
An error occurred while processing the request.
Steps to reproduce
- Go to Search
- Write and press enter to search for a RR
- Error is displayed
Poweradmin version
4.0.10
Database
SQLite
Additional information (optional)
The patch below is for 4.0.4. Seems it was not fixed in 4.0.10.
--- lib/Domain/Repository/RecordRepository.php.orig 2025-11-03 09:24:52.000000001 +0200
+++ lib/Domain/Repository/RecordRepository.php 2025-12-22 10:15:59.124330619 +0200
@@ -465,9 +465,9 @@
\$query .= " WHERE \$records_table.domain_id = :zone_id AND \$records_table.type IS NOT NULL AND \$records_table.type != ''" .
\$search_condition . \$type_condition . \$content_condition;
// Sorting and limits
- \$query .= " ORDER BY \$sort_by \$sort_direction LIMIT :row_amount OFFSET :row_start";
+ \$query .= " ORDER BY \$records_table.\$sort_by \$sort_direction LIMIT :row_amount OFFSET :row_start";
\$stmt = \$this->db->prepare(\$query);
// Bind parameters - use PDO::PARAM_INT for LIMIT and OFFSET
Describe the problem
If you try to search for records it will throw and web error:
An error occurred while processing the request.
Steps to reproduce
Poweradmin version
4.0.10
Database
SQLite
Additional information (optional)
The patch below is for 4.0.4. Seems it was not fixed in 4.0.10.