Skip to content

Commit b3139b0

Browse files
Testcases updated
1 parent 4296de2 commit b3139b0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/lib/models/content_type.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function Fetch($params = null) {
5757
* @returns Query
5858
* */
5959
public function Query() {
60-
\Contentstack\Utility\debug(("sndkcxcx cx n"));
6160
return new Query($this, $this->type);
6261
}
6362
}

src/lib/utility.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ function contentstackUrl($queryObject = '', $type = '') {
9797
break;
9898
default:
9999

100-
if($queryObject->_query && $queryObject->_query['include_global_field_schema'] || !$queryObject->contentType) {
101-
$URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->uid;
102-
} else {
103-
$URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->contentType->uid.ENTRIES;
104-
}
100+
$URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->contentType->uid.ENTRIES;
101+
// \Contentstack\Utility\debug($queryObject);
102+
// if($queryObject->_query && $queryObject->_query['include_global_field_schema']) {
103+
// $URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->uid;
104+
// } else {
105+
// $URL = getDomain($queryObject).CONTENT_TYPES.$queryObject->contentType->uid.ENTRIES;
106+
// }
105107
if(isset($queryObject->entryUid)) $URL.=$queryObject->entryUid;
106108
}
107109

0 commit comments

Comments
 (0)