Don't show the faces checklist if there aren't any associated tags.
This commit is contained in:
parent
6802654391
commit
7fb9020255
@ -229,12 +229,14 @@ class tagfaces_Controller extends Controller {
|
|||||||
$oneFace->tag_id)->name, false);
|
$oneFace->tag_id)->name, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add a checklist to the form.
|
if ($array_faces) {
|
||||||
$tags_group = $form->group("ExistingFaces")
|
// Add a checklist to the form.
|
||||||
->label(t("Tags with faces:"));
|
$tags_group = $form->group("ExistingFaces")
|
||||||
$tags_group->checklist("facesList")
|
->label(t("Tags with faces:"));
|
||||||
->options($array_faces)
|
$tags_group->checklist("facesList")
|
||||||
->label(t("Select the tag(s) that correspond(s) to the face(s) you wish to delete:"));
|
->options($array_faces)
|
||||||
|
->label(t("Select the tag(s) that correspond(s) to the face(s) you wish to delete:"));
|
||||||
|
}
|
||||||
|
|
||||||
// Add the id# of the photo and a delete button to the form.
|
// Add the id# of the photo and a delete button to the form.
|
||||||
$form->hidden("item_id")->value($id);
|
$form->hidden("item_id")->value($id);
|
||||||
|
Reference in New Issue
Block a user