Menu

#1 Imposible to select a manager in project admin

open
nobody
None
5
2004-09-27
2004-09-27
Anonymous
No

When i was in URL
projectbench/admin/projectadmin.php?new=1

The "validateForm" script reject me because there was
no value for the manager list box.

The problem come from the html code where the
attibute "option" was not created.

My second bugs was the same for this URL
projectbench/admin/projectadmin.php?appID=xxxx
(where xxxx represent an appID)

So i add in the code the "value" atribute for this list box

The diff file beetween the original and my modified
version is at the end.

Trivial bug, but hopes it will avoid you to loose your time
seeking it.

Regards.

Loîc Dupuy

$ diff projectadmin.php.original
projectadmin.php.patched
159c159
< <select name="manager"
id="id_manager" id="manager">
---
> <select name="manager"
id="id_manager">
164c164
< echo "<option>{$row
['login']}</option>";
---
> echo "<option
value=\"{$row['login']}\">{$row['login']}</option>";
209c209
< echo "<option".
($row['login'] == $result['manager'] ? ' selected' : '') .">
{$row['login']}</option>";
---
> echo "<option
value=\"{$row['login']}\"". ($row['login'] == $result
['manager'] ? 'selected' : '') .">{$row['login']}</option>";

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.