Advertisement:

Author Topic: Edit post: Quote, author=undefined added  (Read 221 times)

Offline grimes

  • Newbie
  • *
  • Posts: 7
Edit post: Quote, author=undefined added
« on: February 19, 2019, 09:31:45 AM »
Glitch: Editing a post with quote (without author)
Quote
test
adds automatically author=undefined
Quote from: undefined
test

Offline Virginiaz

  • Semi-Newbie
  • *
  • Posts: 57
Re: Edit post: Quote, author=undefined added
« Reply #1 on: February 19, 2019, 01:09:27 PM »
I had noticed this when I added a bug fix for SMF 2.1's sceditor stuff to my project, and I fixed the issue by changing the code:

Themes/default/scripts/jquery.sceditor.smf.js  Line 724

Code: [Select]
if (attr_author == '' && attrs.defaultattr != '')
to

Code: [Select]
if (attr_author == '' && typeof attrs.defaultattr !== "undefined" && attrs.defaultattr != '') {