|
From: SourceForge.net <no...@so...> - 2004-09-29 09:53:20
|
Bugs item #1036762, was opened at 2004-09-29 13:06 Message generated for change (Comment added) made by domifara You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430840&aid=1036762&group_id=41586 Category: Core - Core Group: XOOPS 2.0.x Status: Open Resolution: None Priority: 8 Submitted By: toshimitsu (domifara) Assigned to: Nobody/Anonymous (nobody) Summary: templates of other module is deleted at moduleuninstallation Initial Comment: templates of other module is deleted at the time of module uninstallation. ALL Xoops2.0,X modules/system/admin/modulesadmin.php line 576 $criteria = new CriteriaCompo('tpl_type', 'block'); Argument specification is wrong. this sql is for delete templates of block SQL wrong ------------ SELECT * FROM xodo_tplfile WHERE (tpl_refid = 155) ORDER BY tpl_refid ------------ right ------------ SELECT * FROM xodo_tplfile WHERE (tpl_refid = 155 AND tpl_type = 'block') ORDER BY tpl_refid ------------ Module id 155 When it exists, the templates of the module will be deleted together ---------------------------------------------------------------------- >Comment By: toshimitsu (domifara) Date: 2004-09-29 18:53 Message: Logged In: YES user_id=926983 to mithyt2 Probably, I think that it is the misapprehension of "CriteriaCompo" and "Criteria". function CriteriaCompo($ele=null, $condition='AND') function Criteria($column, $value='', $operator='=', $prefix = '', $function = '') { ---------------- $criteria = new CriteriaCompo('tpl_type', 'block'); ------------ to ------------ $criteria = new CriteriaCompo(new Criteria('tpl_type', 'block')); ------------ ---------------------------------------------------------------------- Comment By: Jan Pedersen (mithyt2) Date: 2004-09-29 17:05 Message: Logged In: YES user_id=841117 $criteria = new CriteriaCompo('tpl_type', 'block'); $criteria->add(new Criteria('tpl_refid', $block_arr[$i]->getVar('bid'))); $templates =& $tplfile_handler->getObjects($criteria); "tpl_type = block" IS in the criteria (first line) so I don't understand why it isn't working for you. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430840&aid=1036762&group_id=41586 |