Download & Extend

taxonomy_term_load() does not document return value on failure

Project:Drupal core
Version:7.x-dev
Component:documentation
Category:bug report
Priority:normal
Assigned:mjonesdinero
Status:closed (fixed)
Issue tags:needs backport to D7, Novice

Issue Summary

API page: http://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/fu...

Enter a descriptive title (above) relating to taxonomy_term_load, then describe the problem you have found:

If $tid not found, FALSE is returned. NULL would be also assumable.

AttachmentSizeStatusTest resultOperations
added_Return_message1.patch539 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Invalid patch format in added_Return_message1.patch.View details

Comments

#1

Title:Return on failure missing» taxonomy_term_load() does not document return value on failure
Status:active» needs work

Thanks for the patch! See http://drupal.org/node/1689394#comment-6244396 for a note on patch formatting.

So this patch needs to be rerolled using Git, and also:
- Line wrapping -- move the added text up to the previous line, and wrap at 80 characters.
- Add "the" to "FALSE if *the* term was not found.".

#2

Status:needs work» needs review

re roll the patch..

AttachmentSizeStatusTest resultOperations
taxonomy_term_load-does-not-1689426-2.patch514 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch taxonomy_term_load-does-not-1689426-2.patch. Unable to apply patch. See the log in the details link for more information.View details

#3

Status:needs review» needs work

The last submitted patch, taxonomy_term_load-does-not-1689426-2.patch, failed testing.

#4

Assigned to:Anonymous» mjonesdinero
Status:needs work» needs review

sorry about the last patch submitted it was for d7 i thought it is for d7 but also in d8..

attach is the patch now for d8.

AttachmentSizeStatusTest resultOperations
taxonomy_term_load-does-not-1689426-4.patch578 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 37,297 pass(es).View details

#5

Status:needs review» needs work

Thanks!

This line is missing a space:

+ *   A taxonomy term entity. Results are statically cached.FALSE if the term

And maybe it would be better to say "... term entity, or FALSE if the term ..." rather than putting that at the end?

#6

okie re-rolled the patch, git pull first for the update on the patch commited.

attach is the updated patch now..

AttachmentSizeStatusTest resultOperations
taxonomy_term_load-does-not-1689426-6.patch582 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 37,293 pass(es).View details

#7

Status:needs work» needs review

#8

Status:needs review» reviewed & tested by the community

Looks good, thanks! I'll get it committed shortly.

#9

Version:8.x-dev» 7.x-dev
Status:reviewed & tested by the community» patch (to be ported)

Committed to 8.x. The patch doesn't apply to 7.x, so we need a reroll.

#10

Status:patch (to be ported)» needs review

re-rolled the patch for D7

AttachmentSizeStatusTest resultOperations
taxonomy_term_load-does-not-1689426-10.patch526 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 39,249 pass(es).View details

#11

Status:needs review» reviewed & tested by the community

Thanks! I'll get this committed soon.

#12

Status:reviewed & tested by the community» fixed

Committed to 7.x now too. Thanks again!

#13

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here