You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the template which is used to render the shortcodable dataobject is empty, the shortcode will not be saved to the DB. When I type a simple 'Foo' in the template file, the bug vanishes.
public static function parse_shortcode($attributes, $content, $parser, $shortcode) {
if (isset($attributes['id']) && $map = self::get()->byID($attributes['id'])) {
return $map->customise($data)->renderWith('Map'); // Map.ss cannot be empty
}
}
The text was updated successfully, but these errors were encountered:
Found out a strange reproducable error.
When the template which is used to render the shortcodable dataobject is empty, the shortcode will not be saved to the DB. When I type a simple 'Foo' in the template file, the bug vanishes.
public static function parse_shortcode($attributes, $content, $parser, $shortcode) {
The text was updated successfully, but these errors were encountered: