Skip to content

Commit

Permalink
FIX Creation of the second ressource type fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 17, 2016
1 parent 75b4c61 commit 63d0710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions htdocs/install/mysql/migration/3.8.0-3.9.0.sql
Expand Up @@ -607,3 +607,6 @@ INSERT INTO llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) VALUES (14
INSERT INTO llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) VALUES (1482, 148, '7','0','VAT reduced rate',1);
INSERT INTO llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) VALUES (1483, 148, '5','0','VAT super-reduced rate', 1);
INSERT INTO llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) VALUES (1484, 148, '0','0','VAT Rate 0', 1);

-- VMYSQL4.1 ALTER TABLE llx_c_type_resource CHANGE COLUMN rowid rowid integer NOT NULL AUTO_INCREMENT;

2 changes: 1 addition & 1 deletion htdocs/resource/class/html.formresource.class.php
Expand Up @@ -96,7 +96,7 @@ function select_resource_list($selected='',$htmlname='fk_resource',$filter='',$s
}

// Construct $out and $outarray
$out.= '<select id="'.$htmlname.'" class="flat" name="'.$htmlname.'">'."\n";
$out.= '<select id="'.$htmlname.'" class="flat minwidth200" name="'.$htmlname.'">'."\n";
if ($showempty) $out.= '<option value="-1"></option>'."\n";
$num = count($resourcestat->lines);

Expand Down

0 comments on commit 63d0710

Please sign in to comment.