ConLite

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Backend
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Medium
  • Reported Version Contenido 4.8.16 CL beta
  • Due in Version ConLite 1.0
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: ConLite
Opened by Anonymous Submitter - 26.04.2012
Last edited by Ortwin Pinke - 27.04.2012

FS#34 - Error when searching article with no criteria

When searching for an article (Content - Article - Search) without entering criteria, the result shows a non-existent entry and the following shows in the error log: error: 0 () - info: /contenido/backend_search.php next_record called with no query pending.

Closed by  Ortwin Pinke
27.04.2012 08:29
Reason for closing:  Fixed
Anonymous Submitter commented on 27.04.2012 07:27

Fixed bug in /contenido/backend_search.php when searching whithout criteria (line 508+):
[code]
# Rene Mansveld (Spider IT) :: Fix for bug where no criteria was given –>
# $iAffectedRows = $db→affected_rows();
if (!empty($where)) {

  $iAffectedRows = $db->affected_rows();

} else {

  $iAffectedRows = 0;

}
# Rene Mansveld (Spider IT) :: Fix for bug where no criteria was given ←-
[/code]
The error occurred because the query only gets executed when criteria was given (line 477).

Project Manager
Ortwin Pinke commented on 27.04.2012 08:29

Shortend solution using only if-request

if (empty($where) || $db->affected_rows() <= 0) {

an added boolean to show Save Search only if a result is given.

CheckIn && Closed

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing