← Back to team overview

mahara-contributors team mailing list archive

[Bug 1514674] [NEW] Embeding image in textbox results in javascript error

 

Public bug reported:

Mahara 15.10

$config->version = 2015092910;
$config->series = '15.10';
$config->release = '15.10.0';

Browser: Firefox 42.0


When embedding an image (doesn't matter what type) in a text box via the TinyMCE "Insert or select an image" icon, once the user has selected the image (from their list of files), upon saving, gets this javascript error:

TypeError: newtitle is null
http://d.acttqi.mahara/artefact/file/js/filebrowser.js?v=57
Line 695


A check needs to go in for newtitle - to make sure it actually exists.

i.e.

artefact/file/js/filebrowser.js :: line 694, add following check:

    if (filetitle && newtitle) {
        ...
    }

** Affects: mahara
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1514674

Title:
  Embeding image in textbox results in javascript error

Status in Mahara:
  New

Bug description:
  Mahara 15.10

  $config->version = 2015092910;
  $config->series = '15.10';
  $config->release = '15.10.0';

  Browser: Firefox 42.0

  
  When embedding an image (doesn't matter what type) in a text box via the TinyMCE "Insert or select an image" icon, once the user has selected the image (from their list of files), upon saving, gets this javascript error:

  TypeError: newtitle is null
  http://d.acttqi.mahara/artefact/file/js/filebrowser.js?v=57
  Line 695

  
  A check needs to go in for newtitle - to make sure it actually exists.

  i.e.

  artefact/file/js/filebrowser.js :: line 694, add following check:

      if (filetitle && newtitle) {
          ...
      }

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1514674/+subscriptions


Follow ups