addressfield_phone Notice: Undefined index: fax in addressfield_format_phone_generate() (line 70... fax 未定义, addressfield_phone 模块

Notice: Undefined index: fax in addressfield_format_phone_generate() (line 70 of /home/nginx/domains/thatk.com/public/sites/all/modules/addressfield_phone/plugins/format/phone.inc).

尽管没有启用 fax,但在checkout地址填写页面仍出现了这样的错误.刷新页面也没有消失.

image.png

按照mobile的样子将70行改为 if (!$settings || isset($settings['fax'])) { 即可.