Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Bug found, but Report Bug is crashing

phpMyEdit General     Bug found, but Report Bug is crashing
Odoslať novú tému   Odpovedať na tému    
 
iplayfast     Založený: 08.10.2003   Príspevky: 4  
Príspevok Zaslal: 2008-05-01 07:30
Návrat hore  Odpovedať s citátom     

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

Kód:
             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.

Kód:
               if ($this->first_operation()) {
                        $this->fm = 0;
                }


 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov