joomla/joomla-platform — Issue #706: TableNested Publish Return Error
Author: davidhurley
Created: 2012-01-05 03:28:17+00:00
State: open

Noticed a bug in base file tablenested.php

Line 884 public function publish(...

Returns a boolean True on success. However, it seems that it should instead return a number of affected rows. The modeladmin.php file line 865 seems to expect a count integer as a response because it then returns that affected rows to the controlleradmin.php line 183.

Controlleradmin.php uses $cidsAffected to determine the number to display in the JText::plural system message.

As a result the system message on the admin side always returns a "1"

e.g. "1 categories successfully deleted / trashed / published" regardless of the actual number of $cids affected.

Not sure yet on the fastest and best way to fix this. I'm trying a couple of different things.