diff --git a/html/js/card.js b/html/js/card.js index d19fd2435..e3b11efee 100644 --- a/html/js/card.js +++ b/html/js/card.js @@ -683,7 +683,7 @@ function successFill_ipopcard(req,json) } } /** - * show the ipopup for selecting a card type, it is a needed step before adding + *@brief show the ipopup for selecting a card type, it is a needed step before adding * a card *@param input field (obj) it must have the attribute ipopup * possible attribute : diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php index 78cdae0e5..d9b002326 100644 --- a/include/ajax/ajax_card.php +++ b/include/ajax/ajax_card.php @@ -204,6 +204,7 @@ case 'bc': $r.=$f->blank($fd_id); $r.='
'; $r.=HtmlInput::submit('sc',_('Sauve')); + $r.=HtmlInput::button_close($ctl); $r.='
'; if ( isset ($eltid)) { $r.=HtmlInput::hidden("eltid", $eltid); diff --git a/unit-test/include/class/document.Test.php b/unit-test/include/class/document.Test.php index 9015d1552..6bb7f06b4 100644 --- a/unit-test/include/class/document.Test.php +++ b/unit-test/include/class/document.Test.php @@ -136,7 +136,7 @@ class DocumentTest extends TestCase $document->md_id=$md_id; $cnt_before=$cn->get_value("select count(*) from document"); $document->generate($array); - var_dump($document); + $this->assertEquals($document->d_filename ,'all-tags.odt','Generated File '); $cnt_after=$cn->get_value("select count(*) from document"); $this->assertTrue ($cnt_after == $cnt_before+1,"One file generated");