[pLog-svn] r1038 - in plog/trunk: class/action/admin
class/view/admin templates/admin
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Fri Feb 11 08:51:53 GMT 2005
Author: oscar
Date: 2005-02-11 08:51:52 +0000 (Fri, 11 Feb 2005)
New Revision: 1038
Modified:
plog/trunk/class/action/admin/adminresourcelistaction.class.php
plog/trunk/class/view/admin/adminsimpleresourceslistview.class.php
plog/trunk/templates/admin/resourcelist.template
Log:
fixed issue 229 (http://bugs.plogworld.net/view.php?id=229) There were
actually two bugs: one concerning changing the album with the selector at the top of the page (the value of the "mode" parameter wasn't being carried from page to page)
and the second, the same parameter wasn't being carried when changing pages
Modified: plog/trunk/class/action/admin/adminresourcelistaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminresourcelistaction.class.php 2005-02-11 08:34:27 UTC (rev 1037)
+++ plog/trunk/class/action/admin/adminresourcelistaction.class.php 2005-02-11 08:51:52 UTC (rev 1038)
@@ -26,6 +26,7 @@
$this->AdminAction( $actionInfo, $request );
$this->_destination = $this->_request->getValue( "mode" );
+
$this->_albumId = $this->_request->getValue( "albumId" );
if( $this->_albumId == "" )
$this->_albumId = 0;
Modified: plog/trunk/class/view/admin/adminsimpleresourceslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminsimpleresourceslistview.class.php 2005-02-11 08:34:27 UTC (rev 1037)
+++ plog/trunk/class/view/admin/adminsimpleresourceslistview.class.php 2005-02-11 08:51:52 UTC (rev 1038)
@@ -22,8 +22,9 @@
$this->setValue( "requestformat", $config->getValue( "request_format_mode"));
$this->setValue( "baseurl", $config->getValue( "base_url" ));
$this->setValue( "htmlarea", $config->getValue( "htmlarea_enabled" ));
+ $destination = $this->getValue( "destination" );
- $this->_pagerUrl = "?op=resourceList&page=";
+ $this->_pagerUrl = "?op=resourceList&&mode=$destination&page=";
parent::render();
}
Modified: plog/trunk/templates/admin/resourcelist.template
===================================================================
--- plog/trunk/templates/admin/resourcelist.template 2005-02-11 08:34:27 UTC (rev 1037)
+++ plog/trunk/templates/admin/resourcelist.template 2005-02-11 08:51:52 UTC (rev 1038)
@@ -56,8 +56,9 @@
</div>
<div class="list_nav_option">
<br />
- <input type="hidden" name="op" value="resourceList">
- <input type="submit" name="Show" value="{$locale->tr("show")}">
+ <input type="hidden" name="op" value="resourceList" />
+ <input type="hidden" name="mode" value="{$destination}" />
+ <input type="submit" name="Show" value="{$locale->tr("show")}" />
</div>
</fieldset>
</form>
More information about the pLog-svn
mailing list