public function IsDocumentLocked($documentId, $workflowId) { $documentId = intval($documentId); if ($documentId <= 0) { throw new CBPArgumentNullException("documentId"); } $diskId = self::processGetDiskIdByDocId($documentId); if ($diskId !== null) { return self::proxyToDisk(__FUNCTION__, array($diskId, $workflowId)); } return parent::IsDocumentLocked($documentId, $workflowId); }
$arRes_tmp = array(); foreach ($arRes as $vv => $vval) { if (substr($vv, 0, 8) == "CATALOG_") { $arRes_tmp[$vv] = $arRes[$vv]; } } } $arRes = $rsData2->NavNext(true, "f_"); if (isset($arCatGroup)) { $arRes = array_merge($arRes, $arRes_tmp); } $f_ID = $arRes_orig["ID"]; } $lockStatus = $arRes_orig['LOCK_STATUS']; } elseif ($boolSubBizproc) { $lockStatus = CIBlockDocument::IsDocumentLocked($f_ID, "") ? "red" : "green"; } else { $lockStatus = ""; } if (in_array("CATALOG_QUANTITY_TRACE", $arSelectedFields)) { $arRes['CATALOG_QUANTITY_TRACE'] = $arRes['CATALOG_QUANTITY_TRACE_ORIG']; $f_CATALOG_QUANTITY_TRACE = $f_CATALOG_QUANTITY_TRACE_ORIG; } $arRes['lockStatus'] = $lockStatus; $arRes["orig"] = $arRes_orig; $edit_url = '/bitrix/admin/iblock_subelement_edit.php?WF=Y&type=' . urlencode($strSubIBlockType) . '&IBLOCK_ID=' . $intSubIBlockID . '&lang=' . LANGUAGE_ID . '&PRODUCT_ID=' . $ID . '&ID=' . $arRes_orig['ID'] . '&TMP_ID=' . $strSubTMP_ID . $sThisSectionUrl; $arRows[$f_ID] = $row = $lAdmin->AddRow($f_ID, $arRes, $edit_url, GetMessage("IB_SE_L_EDIT_ELEMENT"), true); $boolEditPrice = false; $boolEditPrice = CIBlockElementRights::UserHasRightTo($intSubIBlockID, $f_ID, "element_edit_price"); $row->AddViewField("ID", $f_ID); if ($f_LOCKED_USER_NAME) {
public function IsDocumentLocked($documentId, $workflowId) { $diskId = self::processGetDiskIdByDocId((int) $documentId); if ($diskId !== null) { self::proxyToDisk(__FUNCTION__, array($diskId, $workflowId)); } return parent::IsDocumentLocked($documentId, $workflowId); }