Latest News: (loading..)
Issue Information
-
#000074
-
0 - None Assigned
-
Fixed
-
2.3
-
2.3
Issue Confirmations
-
Yes (0)No (0)
Undefined index on address_book_process.php page with action = add address
Posted by foxp2 on 24 October 2010 - 07:29 PM
Notice: Undefined index:
for a strict validation, make these changes on includes/modules/address_book_details.php :
line 47 :
line 51 :
line 60 :
line 69 :
line 78 :
line 87 :
line 91 :
line 114 :
- entry_firstname in catalog\includes\modules\address_book_details.php on line 47
- entry_lastname in catalog\includes\modules\address_book_details.php on line 51
- entry_company in catalog\includes\modules\address_book_details.php on line 60
- entry_street_address in catalog\includes\modules\address_book_details.php on line 69
- entry_suburb in catalog\includes\modules\address_book_details.php on line 78
- entry_postcode in catalog\includes\modules\address_book_details.php on line 87
- entry_city in catalog\includes\modules\address_book_details.php on line 91
- entry_country_id in catalog\includes\modules\address_book_details.php on line 114
- entry_zone_id in catalog\includes\modules\address_book_details.php on line 114
- entry_state in catalog\includes\modules\address_book_details.php on line 114
- entry_country_id in catalog\includes\modules\address_book_details.php on line 128
for a strict validation, make these changes on includes/modules/address_book_details.php :
line 47 :
<td class="fieldValue"><?php echo tep_draw_input_field('firstname', (isset($entry['entry_firstname']) ? $entry['entry_firstname'] : '')) . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>
line 51 :
<td class="fieldValue"><?php echo tep_draw_input_field('lastname', (isset($entry['entry_lastname']) ? $entry['entry_lastname'] : '')) . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>
line 60 :
<td class="fieldValue"><?php echo tep_draw_input_field('company', (isset($entry['entry_company']) ? $entry['entry_company'] : '')) . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>
line 69 :
<td class="fieldValue"><?php echo tep_draw_input_field('street_address', (isset($entry['entry_street_address']) ? $entry['entry_street_address'] : '')) . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>
line 78 :
<td class="fieldValue"><?php echo tep_draw_input_field('suburb', (isset($entry['entry_suburb']) ? $entry['entry_suburb'] : '')) . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>
line 87 :
<td class="fieldValue"><?php echo tep_draw_input_field('postcode', (isset($entry['entry_postcode']) ? $entry['entry_postcode'] : '')) . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
line 91 :
<td class="fieldValue"><?php echo tep_draw_input_field('city', (isset($entry['entry_city']) ? $entry['entry_city'] : '')) . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>
line 114 :
echo tep_draw_input_field('state', tep_get_zone_name((isset($entry['entry_country_id']) ? $entry['entry_country_id'] : ''), (isset($entry['entry_zone_id']) ? $entry['entry_zone_id'] : ''), (isset($entry['entry_state']) ? $entry['entry_state'] : '')));
line 128 : <td class="fieldValue"><?php echo tep_get_country_list('country', (isset($entry['entry_country_id']) ? $entry['entry_country_id'] : '')) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
Updating status to: Fixed
Issue fixed in: 2.3
Thanks for the report! This has been fixed in the following commit:
https://github.com/osCommerce/oscommerce2/commit/3e69ddf86390fdd596983f61b2538811d2f0c78b
Kind regards,
Issue fixed in: 2.3
Thanks for the report! This has been fixed in the following commit:
https://github.com/osCommerce/oscommerce2/commit/3e69ddf86390fdd596983f61b2538811d2f0c78b
Kind regards,
Issue fixed in: 2.3










