- Timestamp:
- 12/21/09 17:09:07 (2 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
-
common/db/tags.php (modified) (2 diffs)
-
scripts/migrate-authors-to-task-tags (added)
-
www/controllers/task.php (modified) (3 diffs)
-
www/views/task_edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/db/tags.php
r1081 r1084 25 25 $query .= sprintf(" WHERE %s", implode(" AND ", $where)); 26 26 } 27 $query .= " ORDER BY name"; 27 28 return db_fetch_all($query); 28 29 } … … 47 48 FROM ia_%s_tags AS obj_tags 48 49 LEFT JOIN ia_tags AS tags ON obj_tags.tag_id = tags.id 49 WHERE %s_id = %s%s%s", 50 WHERE %s_id = %s%s%s 51 ORDER BY tag_name", 50 52 db_escape($obj), db_escape($obj), db_escape($obj), 51 53 db_quote($obj_id), $where_type, $where_parent -
trunk/www/controllers/task.php
r1083 r1084 43 43 44 44 // Fill in form values from request, defaults in $task 45 $fields = array(' author', 'type', 'source', 'hidden', 'title', 'page_name',45 $fields = array('type', 'source', 'hidden', 'title', 'page_name', 46 46 'open_source', 'open_tests', 'test_count', 'test_groups', 47 47 'evaluator', 'use_ok_files', 'public_tests'); … … 146 146 // FIXME: error handling? Is that even remotely possible in php? 147 147 task_update_parameters($task_id, $new_task_params); 148 task_update($new_task);149 148 150 149 if (identity_can('task-tag', $new_task)) { … … 160 159 } 161 160 } 161 $new_task["author"] = tag_build_list("task", $new_task["id"], "author"); 162 task_update($new_task); 162 163 163 164 flash("Task-ul a fost modificat cu succes."); -
trunk/www/views/task_edit.php
r1083 r1084 29 29 'description' => "Utilizatorul care are drepturi de editare ". 30 30 "asupra problemei. Poate fi lasat gol.", 31 'type' => 'string',32 ),33 'author' => array(34 'name' => "Autor(i)",35 31 'type' => 'string', 36 32 ), … … 120 116 <?= view_form_field_li($form_fields['user'], 'user') ?> 121 117 <?php } ?> 122 <?= view_form_field_li($form_fields['author'], 'author') ?>123 118 <?= view_form_field_li($form_fields['source'], 'source') ?> 124 119 <?php if (identity_can('task-change-security', $task)) { ?>
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)