Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77cd41a

Browse files
committed
#84 fix
1 parentd2436f9 commit77cd41a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎MISC/Move-Lists.ps1‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ if ($MigrationType -eq "Export") {
139139
}
140140
}
141141

142+
# Fix Formula nodes - replace [{fieldtitle:FieldName}] with just FieldName
143+
$formulaNodes=$xml.SelectNodes("//Formula")
144+
if ($formulaNodes-ne$null-and$formulaNodes.Count-gt0) {
145+
Write-Host"Processing Formula nodes:"$formulaNodes.Count
146+
foreach ($formulaNodein$formulaNodes) {
147+
if ($formulaNode.InnerText-match'\[\{fieldtitle:([^}]+)\}\]') {
148+
$originalFormula=$formulaNode.InnerText
149+
$updatedFormula=$originalFormula-replace'\[\{fieldtitle:([^}]+)\}\]','$1'
150+
$formulaNode.InnerText=$updatedFormula
151+
Write-Host"Updated formula:$originalFormula ->$updatedFormula"
152+
}
153+
}
154+
}
155+
142156
# Get all 'Field' nodes with attribute Hidden='TRUE'
143157
$hiddenFields=$xml.SelectNodes("//Field[@Hidden='TRUE']")
144158
if ($null-ne$hiddenFields) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp