Index
» Projects
» phpMyEdit
» Forum
» Bug found, but Report Bug is crashing |
|
iplayfast
Joined: 08 Oct 2003
Posts: 4
Posted: 2008-05-01 07:30
Back to top
Reply with quote
|
I tried to report a bug and fix but wasn't able to, so I'm reporting it here in the hopes that a developer notices.
From the cvs line 2223 of phpMyEdit.php
Code: |
if ($this->first_operation()) {
$this->fm = 0;
} // last operation must be performed below, after retrieving total_recs
if ($this->next_operation()) {
$this->fm += $this->inc;
}
$this->number_of_recs();
if ($this->last_operation() || $this->fm > $this->total_recs) { // if goto_text is badly set
$this->fm = (int)(($this->total_recs - 1)/$this->inc)*$this->inc;
} |
at this point $this->fm is the last page, no matter what you wanted.
the following code needs to be added to set to the first page as needed.
Code: |
if ($this->first_operation()) {
$this->fm = 0;
}
|
|
Post new topic
Reply to topic
|
|
|
|