[NOT A BUG] Minor bug in account edit template
Just figured I would post about a very minor bug that I found today in \zen-cart-v1.3.9a-full-fileset-04192010\includes\templates\template_default\templates\tpl_account_edit_default. php
The issue is that for each input field, the id is placed into the type in the html code. ie <input type="id="something"e;"...
In order to fix this minor issue, which from what I tested does not affect the functionality of updating an account, is to change each line of code containing the zen_draw_input_field. See the example below as to how to fix the bug:
original:
<?php echo zen_draw_input_field('firstname', $account->fields['customers_firstname'], 'id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
change to:
<?php echo zen_draw_input_field('firstname', $account->fields['customers_firstname'] . ' id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
The change is from "], 'id="firstname"'" to "] . ' id="firstname"'".
Have a nice day,
-John
http://www.jdcncsolutions.com/
Re: Minor bug found and fixed in account edit template
Hi,
I cannot reproduce the error with a clean install of v1.3.9a and the original code looks correct.
Are you seeing the problem on a clean install or a modified one?
Regards,
Christian.
Re: Minor bug found and fixed in account edit template
I agree with CJPinder.
The suggested coding change is actually syntactically incorrect. The root problem is not with the template, but must be with something else on your site.
Re: Minor bug found and fixed in account edit template
Hey guys,
My apologies... I just looked over my work again and found that from the source files I had made some changes to the file a long time ago (further than I can remember making them :D) in a past template and just found the error as I was checking a new template that I working on. :oops:
Take care,
-John
http://www.jdcncsolutions.com/