[SOLVED] module: code block, Failure in block 4

slart

Joined: 2013-11-11
Posts: 112
Posted: Tue, 2014-06-24 13:02

Hello, I have an error in module: code block. In the code block admin page, at code block 4, in "Enter the title of the 4th block.". When I type a text into it, then he is indeed stored in the database, but it appears again and again the text from block 3 in this field, not the "new" text that I have entered. New text will appear on the website. Only appears in the text box after saving, again the text from block 3.
I have seen over FTP in the module files and not found a failure in the php files.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-06-24 18:59

a typo in the modules/code_block/admin_code_block.php. find:

    $group = $form->group("code_block4")->label(t("Code block 4"));
    $group->input("code_title4")->label(t('Enter the title of the 4th block.'))
		->value(module::get_var("code_block", "title3"));

change to:

    $group = $form->group("code_block4")->label(t("Code block 4"));
    $group->input("code_title4")->label(t('Enter the title of the 4th block.'))
		->value(module::get_var("code_block", "title4"));

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Tue, 2014-06-24 19:14

Hey thanks floridave!
it's in the controllers path:
modules/code_block/controllers/admin_code_block.php