? Success
Referenced as Related to: # 4730

User tests: Successful: Unsuccessful:

avatar gouravsinha
gouravsinha
1 Dec 2014

Steps to reproduce the issue

  1. Go to the User User Notes module and create new record.
  2. Save the Note using toggle editor.
  3. Record is not saved. Or
  4. Create User notes by filling all the fields.
  5. Edit the user not and add the record.
  6. Click on save button.screen shot 2014-10-17 at 02 18 50

Expected result

Data should be save using toggle editor.

Actual result

Data is not saved using toggle editor.

Additional comments

I put <?php echo $this->form->getField('body')->save(); ?> in line number 19 within the javascript function at administrator\components\com_users\views\note\tmpl\edit.php

avatar gouravsinha gouravsinha - open - 1 Dec 2014
avatar jissues-bot jissues-bot - change - 1 Dec 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 1 Dec 2014
The description was changed
avatar brianteeman brianteeman - change - 1 Dec 2014
Title
Update edit.php
In User Notes if we try to add the note using toggle editor then data is not saved.
avatar brianteeman
brianteeman - comment - 1 Dec 2014

Updated title and description from original report

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5268.

avatar brianteeman
brianteeman - comment - 2 Dec 2014

@test worked for me

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5268.

avatar brianteeman brianteeman - test_item - 2 Dec 2014 - Not tested
avatar brianteeman brianteeman - test_item - 3 Dec 2014 - Tested successfully
avatar infograf768
infograf768 - comment - 8 Dec 2014

This code is not consistent with core (and does not apply to present staging).
Please redo PR with

JFactory::getDocument()->addScriptDeclaration('
jQuery(document).ready(function() {
    Joomla.submitbutton = function(task)
    {
        if (task == "note.cancel" || document.formvalidator.isValid(document.getElementById("note-form")))
        {
            ' . $this->form->getField('body')->save() . '
            Joomla.submitform(task, document.getElementById("note-form"));
        }
    }
});');
avatar infograf768
infograf768 - comment - 9 Dec 2014

Closing this as no reply.
Please test
#5363

avatar infograf768 infograf768 - close - 9 Dec 2014
avatar infograf768 infograf768 - change - 9 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-09 09:46:51

Add a Comment

Login with GitHub to post a comment