2010-09-29 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/fields_manager.php: Fixed the custom fields 
	section notice where is empty



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-09-29 09:23:12 +00:00
parent 6cd20eebe5
commit 24260e0f91
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-09-29 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/fields_manager.php: Fixed the custom fields
section notice where is empty
2010-09-28 Sergio Martin <sergio.martin@artica.es> 2010-09-28 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php: Added style parameter to the * include/functions_html.php: Added style parameter to the

View File

@ -87,8 +87,8 @@ if ($delete_field) {
$fields = get_db_all_fields_in_table('tagent_custom_fields'); $fields = get_db_all_fields_in_table('tagent_custom_fields');
if ($fields) {
$table->width = '65%'; $table->width = '65%';
if ($fields) {
$table->head = array (); $table->head = array ();
$table->head[0] = __('Field'); $table->head[0] = __('Field');
$table->head[1] = __('Display on front').print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true); $table->head[1] = __('Display on front').print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
@ -119,7 +119,8 @@ foreach ($fields as $field) {
array_push ($table->data, $data); array_push ($table->data, $data);
} }
print_table ($table); if($fields)
print_table ($table);
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configure_field">'; echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configure_field">';
echo '<div class="action-buttons" style="width: '.$table->width.'">'; echo '<div class="action-buttons" style="width: '.$table->width.'">';