This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  6becabefedabc41f765416a981a1b255b2ebc7bf (commit)
      from  e01bdead8c4b3a1f4e286744cb68f130ecd2ba46 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=6becabefedabc41f765416a981a1b255b2ebc7bf

commit 6becabefedabc41f765416a981a1b255b2ebc7bf
Author: Franck Villaume <[email protected]>
Date:   Sun Feb 16 17:24:33 2020 +0100

    fix edit table. typo in function.

diff --git a/src/www/admin/admin_table.php b/src/www/admin/admin_table.php
index 59dafdd..596b2e3 100644
--- a/src/www/admin/admin_table.php
+++ b/src/www/admin/admin_table.php
@@ -40,7 +40,7 @@ function admin_table_add($table, $unit, $primary_key) {
 
                printf(_('Create a new %s below:'), getUnitLabel($unit));
 
-               echo $HTML->openForm(array('name' => 'add', 'action' => 
getStringFromServer('PHP_SELF').'?function=postad', 'method' => 'post'));
+               echo $HTML->openForm(array('name' => 'add', 'action' => 
getStringFromServer('PHP_SELF').'?function=postadd', 'method' => 'post'));
                echo '
                        <input type="hidden" name="form_key" 
value="'.form_generate_key().'" />
                        <table>';
@@ -91,7 +91,7 @@ function admin_table_postadd($table, $unit) {
        if (db_query_qpa($qpa)) {
                echo $HTML->feedback(sprintf(_('%s successfully added.'), 
ucfirst(getUnitLabel($unit))));
        } else {
-               echo $HTML->error_msg(db_error());
+               echo $HTML->error_msg(_('Failed.').' '.db_error());
                form_release_key(getStringFromRequest('form_key'));
        }
 }

-----------------------------------------------------------------------

Summary of changes:
 src/www/admin/admin_table.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to