Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull entries without entry_id #4

Closed
EpicVoyage opened this issue Jun 16, 2011 · 1 comment
Closed

Pull entries without entry_id #4

EpicVoyage opened this issue Jun 16, 2011 · 1 comment
Milestone

Comments

@EpicVoyage
Copy link

When you try to pull a custom field but don't request the entry_id, the entries_[field_type] handler still requires an entry_id. This breaks the functionality of the JSON plugin.

I don't see a way to attach a patch to this issue, so this is my recommended modification:

if (!in_array('t.entry_id', $select)) {
$select[] = 't.entry_id';
}

Right before "$this->EE->db->select(implode(', ', $select), FALSE)..." (should be around line 102).

Apart from this, great plugin and a headache-saver when dealing with EE tags. Thanks!

@rsanchez
Copy link
Owner

patched in the latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants