Problem with page Attribute when Using 'APPROVED' filter

Permalink
I appear to be having a problem getting the attribute of a page.

I am attempting to replace links using the "Insert Link to Page" with relevant sub page links using the code

$cID = $match[1];
         if ($cID > 0) {
            $c = Page::getByID($cID, 'APPROVED');
            $nh = Loader::helper("navigation");
            if ($c->getCollectionAttributeValue('replace_link_with_first_in_nav')) {
               $subPage = $c->getFirstChild();
               if ($subPage instanceof Page) {
                  return $nh->getLinkToCollection($subPage);
               }
            }else{
               return $nh->getLinkToCollection($c);
            }
         }


I have been able to get it to work removing the 'APPROVED' from the page call
$c = Page::getByID($cID);

But am I right in thinking this should work with the approved pages? are the approved pages tied to the attributes in a different way?

I think its a bug but never to sure with these things can anyone else explain a reason for it? or let me know what's going on here

TheRealSean