Allow more than one tag in argument in get_tags().
All checks were successful
continuous-integration/drone/push Build is passing

Because dynamic input fields are not implemented in the Web-UI, we use
one input field with commas for now.
This commit is contained in:
tastytea 2020-10-19 07:56:24 +02:00
parent a9885482f7
commit f373dd3363
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -123,7 +123,10 @@ vector<string> get_tags()
const string tag{element.getValue()}; const string tag{element.getValue()};
if (!tag.empty()) if (!tag.empty())
{ {
tags_string.push_back(tolower(tag)); const auto new_tags{string_to_vector(tolower(tag))};
tags_string.insert(tags_string.end(),
std::make_move_iterator(new_tags.begin()),
std::make_move_iterator(new_tags.end()));
} }
} }