Page 1 of 1

Google Hangouts - admin tpl has wrong variables

Posted: Wed Feb 04, 2015 11:31 pm
by xseon
Hi,

I noticed that Google Hangouts module doesn't accept setting changes and always returns an error message that the code field can not be empty. Looking into the admin controller and tpl files I found that the textarea and select elements have wrong names. The code

Code: Select all

<textarea name="code" rows="5" id="input-code" class="form-control"><?php echo $code; ?></textarea>
should be

Code: Select all

<textarea name="google_hangouts_code" rows="5" id="input-code" class="form-control"><?php echo $google_hangouts_code; ?></textarea>
and the code

Code: Select all

              <select name="status" id="input-status" class="form-control">
                <?php if ($status) { ?>
should be

Code: Select all

              <select name="google_hangouts_status" id="input-status" class="form-control">
                <?php if ($google_hangouts_status) { ?>
After I applied those changes the module started working properly.