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
}
}
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) {