Andrea Malalana
The new dev version splits the query.
Nice!
PS: Just so you know the current version gives a query error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'field(146)\"🙁\\[[^\\]]*)?\"22605\""' at line 3
Call Stack
# Function Location
1 () JROOT/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138
2 mysqli->prepare() JROOT/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138
3 Joomla\Database\Mysqli\MysqliStatement->__construct() JROOT/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1020
4 Joomla\Database\Mysqli\MysqliDriver->prepareStatement() JROOT/libraries/vendor/joomla/database/src/DatabaseDriver.php:1785
5 Joomla\Database\DatabaseDriver->setQuery() JROOT/plugins/fields/articles/src/Helper.php:558
6 RegularLabs\Plugin\Fields\Articles\Helper::getLinkedArticleIdsByFieldId() JROOT/plugins/fields/articles/src/Helper.php:103
I think the Linked Subforms option would be pretty confusing for people to use and wrap their head around. Don't think it is worth adding that.
Maybe you could do a simpler radio toggle, then. eg:
"Also Lookup Subforms?" YES/NO
With default on Yes for BC.
So it can be turned to NO for fields that don't need look up in Subform, and it saves having to do the Subform query when not needed?