URL:
<http://gna.org/bugs/?func=detailitem&item_id=4571>
Summary: "bug" or "bugs" in CanUse($artifact)
Project: Savane
Submitted by: yvo
Submitted on: dim 23.10.2005 à 08:27
Category: Web Frontend
Priority: C - Normal
Severity: 5 - Blocker
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 1.2
Planned Release:
_______________________________________________________
Details:
Hi,
(using savane 1.2)
I write at line 145 of /include/Group.class this :
if ($artifact == "bugs") $artifact="bug";
Without that, the section "bugs" is not display for the group. Somethimes,
it's use CanUse("bug"), and other times CanUse("bugs")
with "bug" it's good, but not with "bugs". Example :
if ($project->CanUse("bug"))
{ specific_line("bugs", _("Bugs Tracker"), $project->Uses("bugs")); }
(arount ligne 300 in project/admin/editgroupfeatures.php
The first $project->CanUse("bug") is good, and enter the section. Then,
$project->Uses("bugs") go to :
function Uses($artifact)
{
if ($this->project_data_array['use_'.$artifact] != "")
{ return $this->project_data_array['use_'.$artifact]; }
else
{ return $this->CanUse($artifact); }
}
which go to the CanUse("bugs") directly...
Hope this help
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?func=detailitem&item_id=4571>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev