Hi
I have developed a custom module with Studio, but did not include anything special rather than using logic hooks sometimes for this custom module. Apart from this one, no other module is installed.
I have taken a look into this problem again and focused in the code the "Save" button is calling when we try to change the password of the user. It calls to a JS function called "set_Chooser" which has this code:
PHP Code:
<!-- to hide script contents from old browsers
function set_chooser()
{
var display_tabs_def = '';
var hide_tabs_def = '';
var remove_tabs_def = '';
var display_td = document.getElementById('display_tabs_td');
var hide_td = document.getElementById('hide_tabs_td');
var remove_td = document.getElementById('remove_tabs_td');
var display_ref = display_td.getElementsByTagName('select')[0];
for(i=0; i < display_ref.options.length ;i++)
{
display_tabs_def += "display_tabs[]="+display_ref.options[i].value+"&";
}
if(hide_td != null)
{
var hide_ref = hide_td.getElementsByTagName('select')[0];
for(i=0; i < hide_ref.options.length ;i++)
{
hide_tabs_def += "hide_tabs[]="+hide_ref.options[i].value+"&";
}
}
if(remove_td != null)
{
var remove_ref = remove_td.getElementsByTagName('select')[0];
for(i=0; i < remove_ref.options.length ;i++)
{
remove_tabs_def += "remove_tabs[]="+remove_ref.options[i].value+"&";
}
}
document.EditView.display_tabs_def.value = display_tabs_def;
document.EditView.hide_tabs_def.value = hide_tabs_def;
document.EditView.remove_tabs_def.value = remove_tabs_def;
}
// end hiding contents from old browsers -->
The error I am getting when I try to change an user password is:
display_td is null... and it is because Save calls this code:
PHP Code:
<input id="Save" title="Guardar [Alt+S]" accessKey="S"
class="button" onclick="if (!set_password(form,newrules('','',''))) return false; if (!Admin_check()) return false; this.form.action.value='Save'; set_chooser(); if(verify_data(EditView)) this.form.submit();"
type="button" name="save" value=" Guardar " >
But do not understand why the display_td is null, if in the set_chooser function it is defined:
PHP Code:
var display_td = document.getElementById('display_tabs_td');
Does this give you an idea of what could be happening?
Thanks again!!
Bookmarks