Fixed error in the batch deletion.

This commit is contained in:
Loic d'Anterroches 2008-08-04 08:43:12 +02:00
parent f40d197478
commit e1f961c14b

View File

@ -122,7 +122,7 @@ class IDF_Conf extends Pluf_Model
function delVal($key, $initcache=true) function delVal($key, $initcache=true)
{ {
$gconf = new IDF_Conf(); $gconf = new IDF_Conf();
$sql = new Pluf_SQL('vkey=%s AND project=%s', array($key, $this->_project)); $sql = new Pluf_SQL('vkey=%s AND project=%s', array($key, $this->_project->id));
foreach ($gconf->getList(array('filter' => $sql->gen())) as $c) { foreach ($gconf->getList(array('filter' => $sql->gen())) as $c) {
$c->delete(); $c->delete();
} }